|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : yx 2:5020/400 30 Jan 2001 17:17:28 To : All Subject : Re: telnet -------------------------------------------------------------------------------- Maxim Krasovsky <maxx@usat.css-sv.com> wrote: > > Привет, всем написал я вот такой скрипт, > > #!/bin/sh > if /sbin/ping -c 1 -t 2 192.168.0.141; then > echo "link up" > else > { > А здесь надо сделать следующее: (так это я делаю с > клавиатуры:) > > telnet IP > 24 > 8 > sys reboot > > } > > fi > Если б это был модем то запустил бы я chat. > А здесь? $ man telnet :2/telnetrc ... the file `.telnetrc' in the user's home directory ... The first thing on the line is the name of the machine that is being connected to. The rest of the line, and successive lines that begin with white space are assumed to be telnet commands and are processed as if they had been typed in manually to the telnet command prompt. ayt? -- Vladimir Yakovetsky --- ifmail v.2.15dev5 * Origin: Disorganized yx's groupie (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/134012b993bad.html, оценка из 5, голосов 10
|