SUMMARY: solaris 9 ssh hangs from cron...

From: <egold_at_fsa.com>
Date: Fri Aug 08 2003 - 15:27:15 EDT
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@host2:/tmp/sarcheck/030806# date
Wed Aug  6 14:48:04 EDT 2003

root@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@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Aug 8 15:31:49 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:17 EST