From: fmu@OERAG.DE
Date: Wed Nov 06 2002 - 07:25:12 EST
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