Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using rsh

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hello,

Let's say I'm using 'rsh' for running a unix script from a windows machine (windows batch file that calling to a unix script via 'rsh'). Is there any way for returning a value of success/failure to the unix batch file?
if not - May you have better method rather than 'rsh'?

Thanks!
 
You could try testing against the value of ERRORLEVEL in the Windows batch file, but I'm not sure whether Windows version of rsh returns useful values for that.

See your Windows batch file documentation ("help if" is useful under Win98, not sure about newer flavours) for details of how to test it.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top