SUMMARY: solaris 9 ssh hangs from cron...
egold at fsa.com
egold at fsa.com
Fri Aug 8 15:27:15 EDT 2003
Thanx for all the responses, the answer i used was to install openssh on
solaris9 and that works fine.
original question:
I have a job i run that ssh-es to all my servers and runs a command, it
works fine from the command line but from cron it hangs on each host, the
ssh process does not return from the remote command. The remote command
only takes 30 seconds to run but it never returns.
My server is solaris 9 and the clients are solaris 8 running openssh.
here is the "ps -ef" of the problem:
root at host2:/tmp/sarcheck/030806# date
Wed Aug 6 14:48:04 EDT 2003
root at host2:/tmp/sarcheck/030806# psg sarch
root 15877 15640 0 11:50:08 ? 0:01 ssh fsasun9
/usr/local/bin/run_sarcheck
root 15639 469 0 11:50:01 ? 0:00 sh -c
/opt/local/bin/make_sarcheck_web > /tmp/make_sarcheck_web.log 2>&1
root 15640 15639 0 11:50:01 ? 0:00 /bin/ksh
/opt/local/bin/make_sarcheck_web
my cronjob looks like the following:
for i in fsasun9 host2 host3
do
ssh $i "/usr/local/bin/run_sarcheck"
done
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
More information about the summaries
mailing list