![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| if clause | palmer18 | UNIX for Dummies Questions & Answers | 3 | 08-08-2007 06:22 AM |
| building a SET clause in shell script | shalua | Shell Programming and Scripting | 14 | 04-10-2007 03:34 PM |
| why put double square brackets in an if clause? | napolayan | UNIX for Dummies Questions & Answers | 5 | 11-15-2006 11:18 PM |
| if clause in AWK END block not working. | satnamx | Shell Programming and Scripting | 1 | 04-21-2006 03:29 AM |
| Expect and auto expect command | arun_v | Shell Programming and Scripting | 0 | 03-29-2006 04:31 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Conditonal clause in expect.
spawn -noecho ssh -qt $HOST /usr/bin/passwd $USER >/dev/null 2>&1
sleep 0.2 expect "Password:" sleep 0.2 send "$PASS\n" expect "Password:" sleep 0.2 send "$PASS\n" sleep 0.2 PSEUDOCODE: Check for word "Success", if not, set shell variable STATUS to "Failed". any help appreciated akbar |
| Forum Sponsor | ||
|
|