The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
check exit status - Expect Script
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
check exit status - Expect Script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-02-2008
mehmet_demirez
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
mehmet_demirez
View Public Profile
Find all posts by mehmet_demirez
Find mehmet_demirez's past nominations received
Find mehmet_demirez's present nominations given