exiting from a windows command
Hi ,
I have the following scenario where by i am accessing a windows machine running a command when the command finished and is sucessful it will return o
So i am cecking before i exit but I seem to always exit with return code 1
Any ideas why ?
telnet <windows machine ><<EOF
run some java within the windows machine !
echo the returncode is %errorlevel%
if %errorlevel% neq 0
exit 1
EOF
|