Search Results

Search: Posts Made By: user1323
25,175
Posted By user1323
sorry the script should be: ...
sorry the script should be:

#!/usr/local/bin/expect --
set timeout -1
spawn /bin/su - btmems
expect "Password: "
send "btmRus99\r"
expect "\r\n"
send "/bin/echo Hello>>/tmp/readfil\n"

...
25,175
Posted By user1323
the response is: spawn /bin/su Password: ...
the response is:

spawn /bin/su
Password:
su: Sorry
send: invalid spawn id (4)
while executing
"send "/bin/echo Hello>>/tmp/readfil\n""
(file "exp" line 7)

If I didn't have a...
25,175
Posted By user1323
This didn't work for me: ...
This didn't work for me:

#!/usr/local/bin/expect --
set timeout -1
spawn /bin/su
expect "Password: "
send "btmRus99\r"
expect "\r\n "
send "/bin/echo Hello>>/tmp/readfil\n"
Showing results 1 to 3 of 3

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