> Да, годится. Но с expect--ом тоже хотелось бы разобраццо.. Чем большэ тибе хочиццца разабраццо, тем меньше шансафф, что тибе атветят в следущий рас!
Два простейших примера для expect-а expect_putftp - копирует файлы на ftp сервер. #!/usr/bin/env expect # usage: expect_ftpput host username password files set timeout 20 set host [lindex $argv 0] set user [lindex $argv 1] set password [lindex $argv 2] set files [lindex $argv 3] spawn ftp -n $host expect "ftp> " send "user\n" expect "(username)" send "$user\n" expect "Password:" send "$password\n" expect "ftp> " send "cd ~\n" expect "ftp> " send "mput $files\n" expect "mput " send "a\n" expect "ftp> " expect_runcmd - запускает команду по telnet-у. #!/usr/bin/env expect # usage: expect_runcmd host username password cmd set timeout 20 set name [lindex $argv 0] set user [lindex $argv 1] set password [lindex $argv 2] set command [lindex $argv 3] spawn telnet $name expect "login:" send "$user\n" expect "Password:" send "$password\n" expect "prompt>" send "$command\n" expect "prompt>" -- Best regards, Aleksey Cheusov. -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org