ssh exit codes
From: Ian Pellew (ian.pellew@orange.be)Date: 01/28/02
- Next message: Ken Arnold: "Solaris NIS+ authentication and ssh 3.1.0"
- Previous message: Matt Giwer: "WWW.GIWERSWORLD.ORG"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: ian.pellew@orange.be (Ian Pellew) Date: 28 Jan 2002 08:14:50 -0800
Guys;
Newbie to ssh and 2 Q's
1. What are the exit code/return value(s) of ssh ?
Cannot seem to find any mention of this.
EG
RET=$(/usr/local/bin/ssh -2 cacsuser@${REMOTEHOST_SRC} "ls")
(Not my code)
This sometimes fails and I was wondering if anything can be
gleamed from the shells `$?`
2. Any ideas / suggestions on how to test this script's
RET=$(/usr/local/bin/ssh -2 cacsuser@${REMOTEHOST_SRC} "ls").
My problem is, its a gone away third party shell script,
that I have modified (Added teh above to a retry loop) and
would like to test in a NON live environment.
Is there some test option or service I can take advantage of?
I have no ideas on how to set ssh up or if I could use the LIVE
service in a test mode or something.
The script is currently live, accept the `RET=$(/usr/local/bin/ssh -2
cacsuser@${REMOTEHOST_SRC} "ls")` sometimes fails to connect. I think
the coder uses the `ls` just to check the connection, maybe there is a
better way, ssping !!
Regards
Ian
- Next message: Ken Arnold: "Solaris NIS+ authentication and ssh 3.1.0"
- Previous message: Matt Giwer: "WWW.GIWERSWORLD.ORG"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|