Hi guys,
I'm having an issue with running a perl script from the crontab. I've been looking into it for a while so have tried most of the suggestions i've come across on the net and still no luck. I've added the full perl path and path of the script to the cron entry, the permissions of the script are fine, the cron and the script are owned by the same user, there are no errors in the users mail relating to the cron entry for the script. I thought it may be that the cron was not picking up the correct environment variables as the user does initialise some of these from its profile but when i added these to a shell script which also called the perl script it still didn't work. I am calling an expect script inside the perl script, not sure if this would cause any issues? Needless to say it runs fine from the command line! Does anyone have any ideas as to what the problem might be?
Cheers!
I'm having an issue with running a perl script from the crontab. I've been looking into it for a while so have tried most of the suggestions i've come across on the net and still no luck. I've added the full perl path and path of the script to the cron entry, the permissions of the script are fine, the cron and the script are owned by the same user, there are no errors in the users mail relating to the cron entry for the script. I thought it may be that the cron was not picking up the correct environment variables as the user does initialise some of these from its profile but when i added these to a shell script which also called the perl script it still didn't work. I am calling an expect script inside the perl script, not sure if this would cause any issues? Needless to say it runs fine from the command line! Does anyone have any ideas as to what the problem might be?
Cheers!