Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
mydir=/user/name progstat=5 sas=/products/SAS/SASFoundation/9.2/sas $sas mytest RESULT=$(echo $"$?") echo RESULT= "$RESULT" [ "$RESULT" ] && progstat=0 || progstat=1 echo the value of progstat in $mydir/test1 = $progstat if [ "progstat" ] != 0 then echo "----Program Failed----" else echo"----Program Success----" fi
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Advice on a batch file that copies, moves, sftp's & deletes files||6||63|
|comm diff cmp unix commands||2||23|
|need a help to fix one if else shell script issue||6||33|
Join the community of 500,000 technology professionals and ask your questions.