I added "#!/usr/bin/expect" in crontab as part of hit and trail.. but with and without this result is same...
I also suspect stdin issue.. now i am even calling a wrapper scipt first from cron tab which calls my script..
in wrapper script i am setting TERM e.t.c but still result is same
I have a expect script which does rlogin to a remote box and runs a script there on remote box.. when i run it from command prompt it runs fine... but when i run it from crontab it does not... it gets stuck when expecting a password..
can anyone help me on this please ?
=== SCRIPT =====...
I tried but still Its not working... waits for pwd...though same from command prompt it work,..
Subject: Cron <sunil@homer> /usr/bin/expect /home/sunil/eastLoad/runSigill
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/sunil>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=sunil>...
I tried using . /home/sunil/eastLoad/runSigill
and here are the messages which i get in mail...
[sunil@homer baais]$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/sunil": 1 message 1 new
>N 1 root@localhost.local Sun Jul 27 18:38 22/805 "Cron...
Here is the crontab and other entries...
[sunil@homer eastLoad]$ echo $SHELL
/usr/bin/ksh
[sunil@homer eastLoad]$ pwd
/home/sunil/eastLoad
[sunil@homer eastLoad]$ ls runS*
runSigill
[sunil@homer eastLoad]$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
#...
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...
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.