
Linux
文章平均质量分 81
red_star399
这个作者很懒,什么都没留下…
展开
-
在ssh,telnet断开之后继续执行程序
A,Shell支持作用控制,有以下命令: 1. command& 让进程在后台运行 2. jobs 查看后台运行的进程 3. fg %n 让后台运行的进程n到前台来 4. bg %n 让进程n到后台去; PS:"n"为jobs查看到的进程编号. B.下列转:http://blog.chinaunix.net/u/1604/showart_1079559.html原创 2012-11-13 10:05:37 · 1789 阅读 · 0 评论 -
linux 下expect的使用
#!/usr/bin/expect set timeout 60 spawn ssh -l guest 210.45.114.190 expect { "*yes/no*" {send "yes\r"; expect_continue} "*password*" {send "guest\r"} } expect "*guest@node43*" send "cd SA11011033\r原创 2012-11-14 10:44:11 · 441 阅读 · 0 评论