Search Results

Search: Posts Made By: sk860811
25,536
Posted By radoulov
Yes: expect { -re "ftp ?>" { ...
Yes:

expect {
-re "ftp ?>" {
send "123"
}
...
}
25,536
Posted By radoulov
This should be sufficient: ...
This should be sufficient:

"ftp*>"
25,536
Posted By felipe.vinturin
I know it does not have everything to do with...
I know it does not have everything to do with your question, but have you seen the autoexpect command? Check this link: autoexpect(1) - Linux man page (http://linux.die.net/man/1/autoexpect)

It...
25,536
Posted By radoulov
expect { "\[AB]" { send "123" ...
expect {
"\[AB]" {
send "123"
}
"C" {
send "567"
}

If you real patterns are more complex, you'll need a different solution.
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy