![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expect program with password as arg | illcar | Shell Programming and Scripting | 1 | 01-30-2009 08:04 PM |
| strange expect script behavior, or am i misunderstanding expect scripting? | v1k0d3n | Shell Programming and Scripting | 2 | 12-10-2008 04:31 PM |
| Script to open program and send/execute command in program | tuathan | UNIX for Dummies Questions & Answers | 1 | 11-19-2008 09:59 PM |
| how to execute this program? | sathyaac | Shell Programming and Scripting | 1 | 06-27-2008 08:31 AM |
| execve to execute a program | winsonlee | High Level Programming | 0 | 07-25-2004 05:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I want at expect script to execute another program for example:
#!/usr/local/bin/expect spawn ssh root@172.30.64.163 expect "login:" send "root\n" expect "password:" send "root\n" send "./son" ----it does not work instead of this what should i write interact |
|
|||||
|
I am not using expect but having a short look into some tutorial I saw they often use \r when sending commands which looks like a enter stroke or something, like
Code:
send "./son\r" Check this DeBaan: Simple expect ssh example or any other of the 32.800.000 hits you get when you google for "expect tutorial". |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|