Feb 15, 2007 #1 smith364 IS-IT--Management Joined Jun 26, 2001 Messages 34 Location US If ! ./usr/sbin/"any command" then command, command .... else command
Feb 15, 2007 #2 kozlow MIS Joined Mar 3, 2003 Messages 326 Location US ! = Not on the returncode from the command # more tst1 ls tst1 echo $? ! ls tst1 echo $? # ./tst1 tst1 0 tst1 1 Upvote 0 Downvote
! = Not on the returncode from the command # more tst1 ls tst1 echo $? ! ls tst1 echo $? # ./tst1 tst1 0 tst1 1
Feb 15, 2007 #3 kozlow MIS Joined Mar 3, 2003 Messages 326 Location US Guess I should have said it better. In your case it is saying, If the command fails do (then) if it is successful do (else). Hope that makes it a little clearer..... Upvote 0 Downvote
Guess I should have said it better. In your case it is saying, If the command fails do (then) if it is successful do (else). Hope that makes it a little clearer.....