From: Hernan Schiavi (hschiavi@TA.TELECOM.COM.AR)
Date: Wed Nov 06 2002 - 10:17:00 EST
Try this:
rsh styx '(dddddd;echo $?)'
This might work.
Saludos.
Hernan.
Por favor, responda a IBM AIX Discussion List <aix-l@Princeton.EDU>
Enviado por: IBM AIX Discussion List <aix-l@Princeton.EDU>
Destinatarios: aix-l@Princeton.EDU
CC:
Asunto: Antwort: Re: rsh and return code
Clasificación:
Hi,
thanks for your answer, but this don't work.
script (date_tool):
# cat date_tool
#!/bin/ksh
rsh styx kjfdhkjashf
execute:
# ./date_tool
ksh: kjfdhkjashf: not found.
(root:hermes)[/tmp]
# echo $?
0
(root:hermes)[/tmp]
Frank Mueller
################################################################################################
I don't think that you can do this. $? isn't available through rsh/dsh.
You could write a simple script to run your command then echo the return
code.
Simon Green
Philip Morris ITSC Europe
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT