The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-02-2008
mehmet_demirez mehmet_demirez is offline
Registered User
  
 

Join Date: Dec 2007
Location: Istanbul
Posts: 23
what's an expect script?
i don't understand it but you can check the exit status of any process
by checking $? right after you call the script.
For instance:

expect_script
if [ $? -eq 0 ]
#script returns OK
else
#script returns ERROR
fi