9

Expect Script not running from cron. Full Paths used

view full story
linux-howto

http://www.unix.com – My cron file. Copied $PATH Quote: # Minute Hour Day of Month Month Day of Week Command SHELL=/bin/ksh PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:.:perl/lib:/perl/lib/lib/perl5:/perl/scripts:/perl/lib/local:/home/popeye:/temp 0 12 * * * /home/popeye/xferResult & The script Code: #!/usr/bin/expect spawn ftp -i 2.22.221.211 expect ":" send "popeye\n" expect ":" sleep 1 send "thesailorman\n" expect ">" (HowTos)