![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expect Script - No End | domi55 | Shell Programming and Scripting | 1 | 02-22-2009 12:45 PM |
| expect script | shehzad_m | Shell Programming and Scripting | 0 | 01-06-2009 12:24 PM |
| no out from expect script | sam786 | Shell Programming and Scripting | 1 | 12-11-2008 09:52 PM |
| strange expect script behavior, or am i misunderstanding expect scripting? | v1k0d3n | Shell Programming and Scripting | 2 | 12-10-2008 04:31 PM |
| Using expect script in a shell script or vice versa | nua7 | Shell Programming and Scripting | 0 | 07-18-2008 08:16 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Expect Script Query
Hi,
I am writing an expect script, but i have come into a problem ... I have two different answers to one command. This is fine, but I do not know when I will see which answer - Is there anyway I could put an expect answer into an if statement, like so: Code:
if { expect == "1" } {
send "working\n"
else
send "bye\n"
}
thanks .. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|