Hi,
I got your reference from a website while looking for a solution of a problem.
here is the problem:
I have a expect scrips which does rlogin and then runs a script there.
on sun solaris box "a12345", i have a scripts
#!/usr/bin/expect
eval spawn rlogin b12345 -l testuser
expect "Password:"
send "test123\r"
send "/home/testuser/runScripts\r"
send "exit\r"
interact
It will rlogin to box "b12345" and will run script runScript under /home/testuser directory.
When I run this script on command prompt, it runs fine. But if I try to run this script it is is not working. I believe since crontab sets the shell to csh first, that why am not able to run thid script.
Can you give me some solution.
Pls help!
thanks
Ritesh
I got your reference from a website while looking for a solution of a problem.
here is the problem:
I have a expect scrips which does rlogin and then runs a script there.
on sun solaris box "a12345", i have a scripts
#!/usr/bin/expect
eval spawn rlogin b12345 -l testuser
expect "Password:"
send "test123\r"
send "/home/testuser/runScripts\r"
send "exit\r"
interact
It will rlogin to box "b12345" and will run script runScript under /home/testuser directory.
When I run this script on command prompt, it runs fine. But if I try to run this script it is is not working. I believe since crontab sets the shell to csh first, that why am not able to run thid script.
Can you give me some solution.
Pls help!
thanks
Ritesh