Search Results

Search: Posts Made By: sk860811
25,390
Posted By sk860811
:eek: so, I can use Regular Expression to solve...
:eek: so, I can use Regular Expression to solve the complex case like this:cool:


expect {
-re "ABC|"BCD" {
send "123"
}
"KKK" {
send "567"
}


Thankyou:b:
25,390
Posted By sk860811
any other solution? I prefer expect "ftp>" and...
any other solution?
I prefer expect "ftp>" and "ftp >" exactly.
because the output maybe include "ftp" word
and I don't want to separate it :wall:
25,390
Posted By sk860811
Thanks for you solution. And I got some...
Thanks for you solution.

And I got some question about that...
Is that just support one character of change inside each square brackets?

How can I define "with space" or "no space" case?
In...
25,390
Posted By sk860811
Do expect script have "or" statement?
Do expect script have "or" statement?

sound like this:

expect {
"A" or "B" {
send "123"
}
"C" {
send "567"
}


I know expect can separate that to do...
Showing results 1 to 4 of 4

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