Expect Script not getting called in the Cron Job
I have written a script that telnets 100 servers and gets a command output. I have written an "Expect" Script that does the telent functioning. Shell script calls the expect script to telnet each server
The script runs with No issues when executed manually.
But, when I run the script via Cron, the expect script is not getting called.
Like this I am calling the Script
/opt/sfw/bin/expect telExpect.exp $server $Username $Password
While googling I found someone saying mention the SHELL variable so that the expect script should determine the shell where it should run.
So I changed the script like this
telExpect.exp $server $Username $Password
But, the expect script is still not getting called while running from the CRON.
Please please help me on this.