solaris 9 ssh hangs from cron...

2007-12-25 1:47:00

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

Evan Gold
Financial Security Assurance
Tel: 212.893.2762
Fax: 212.339.0852

Comments

Got something to say?

You must be logged in to post a comment.