ssh in bash script
Andy Green
andy at warmcat.com
Tue Apr 5 15:21:05 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
rado wrote:
| can I indeed just capture the exit code for a return value that I can
| pass on to the calling script, or if I decide, just to write the code
| inside the main script?
Immediately after a command, $? has the exit code for you.
- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFCUqzhjKeDCxMJCTIRAlpnAJ43DlIWfcAoYiG+QwC6sLuoKuHciwCglM/f
F+WHeeL7x0Ss6NebqNHCuw4=
=ZMpt
-----END PGP SIGNATURE-----
More information about the users
mailing list