Perl для системного администрирования



              

Finger: простая служба каталогов - часть 2


$ telnet kantine.diku.dk 79

Trying 192.38.109.142 . . .

Connected to kantine.diku.dk.

Escape character is '"]'.

cola<CR><LF>

Login: cola Name: RHS Linux User

Directory: /home/cola Shell: /bin/noshell

Never logged in.

No mail.

Plan:

Current state of the coke machine at DIKU

This file is updated every 5 seconds

At the moment, it's necessary to use correct change.

This has been the case the last 19 hours and 17 minutes

Column 1 is currently «empty*.

It's been 14 hours and 59 minutes since it became empty.

31 items were sold from this column before it became empty. Column 2 contains some cokes.

It's been 2 days, 17 hours, and 43 minutes since it was filled.

Meanwhile, 30 items have been sold from this column. Column 3 contains some cokes.

It's been 2 days, 17 hours, and 41 minutes since it was filled.

Meanwhile, 11 items have been sold from this column. Column 4 contains some cokes.

It's been 5 days, 15 hours, and 28 minutes since it was filled.

Возврат каретки + перевод строки, т. е. символы с ASCII-кодами 13 и!0.

Finger: простая служба каталогов 207

Meanwhile, 26 items have been sold from this column. Column 5 contains some cokes.

It's been 5 days, 15 hours, and 29 minutes since it was filled.

Meanwhile. 18 items have been sold from this column Column 6 contains some coke-lights.

It's been 5 days, 15 hours, and 30 minutes since it «as fillec.

Meanwhile, 16 items have been sold from this column.

Connection closed by foreign host. $

В данном примере мы напрямую соединились с портом Finger, набрали имя пользователя «cola», и сервер вернул требуемую информацию.

Я выбрал этот узел и этого пользователя только затем, чтобы показать, какие чудеса творились на заре появления Интернета. Серверы Finger превратились в службы для задач различного вида. В этом случае кто угодно может посмотреть, заполнен ли автомат газированных напитков, расположенный на факультете компьютерных наук в университете Копенгагена. Примеры странных устройств, подключенных к серверам Finger, можно найти на страницах Беннета Йи (Bennet Yee) в




Содержание  Назад  Вперед