摘要: 手头上有一个远程重启目标服务器上进程的expect脚本,SHELL下单独执行时一切都OK,但是添加到cron任务中时执行却不能工作。部分代码如下:expect脚本:(/data/home/restart_expect)#!/usr/bin/expect spawn ssh -pxxxroot@xxx.xxx.xxx.xxx #expect "*root's password*" expect "*Tencent:*" send "sh some remote scripts" send "exit/n" e 阅读全文
posted @ 2013-03-05 15:11 google4y 阅读(715) 评论(0) 推荐(0) 编辑
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂