Hi, I have reviewed the code and now it can run, but I have several problems now.
[lab@stadis]$ cat TM_ping.exp
#!/usr/bin/expect -f
set timeout -1
spawn $env(SHELL)
match_max 100000
send -- "telnet XXX.XXX.XXX.XXX"
expect -exact "telnet XXX.XXX.XXX.XXX"
send -- "\r"
expect -exact "\r...
Hi all, I have written several shell scritp with tcl/tk and I run it on the machine with the user group, when I give it to another user with different machine or from another IP it gives error.
Spawn/bin/bash
But if I run it from my machine where I wrote it, it runs correctly.
The header is...
I have corrected the code line and now I just need to dump information to a data file text. I set the output option to open "ASR $ now.txt" "w" but I'm still getting an error. What information do I need to work?
#!/usr/bin/expect -f
set timeout -1
spawn $env(SHELL)
match_max 100000
expect...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.