SUN's "ssh" returns always with exit status 255 ?!

From: Rob De Langhe (Rob.DeLanghe@telindus.be)
Date: Fri Jun 04 2004 - 10:08:43 EDT


Hi,

on random days, my scripts which invoke commands on remote hosts through an
SSH connection (password-less, via exchange of keys) always return with exit
status 255.

Looking in man-page of "ssh", it says that it is supposed to return the exit
status of the remote command, or 255 if 'an error occured'.

Even if I do something like

ssh $remotehost "cd /tmp ; echo \$? ; pwd ; echo \$? " ; echo $?

I get as result

0
/tmp
0
255 <-- WHY ??

Even so bad that this morning all scripts returned 0 (zero) as exit statuses,
now suddenly 255.

How can I diagnose the real cause of this exit status, or is this a known bug
?

Running Solaris-9, between SF280R and V100's

TIA

Rob
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:48 EDT