Running perl script in cron in cygwin under Windows
Dave Korn
dave.korn@artimi.com
Thu Jan 17 04:00:00 GMT 2008
>> Cron works on other scripts but not with a perl script. If it's the
>> environment (we are running korn instead of the bash default), it
>> might be good to create a wrapper script in korn shell.
perl often needs a rebaseall run to function at its best.
>> Does cron use bash default profile for the login to run? That could
>> be the key.
>
> It's also been a while since I had to solve cron problems, but I believe
> cron doesn't use any shell -- it just launches whatever program and
> arguments you feed it (via one of the exec() calls?). So if you want to run
> shells, scripts, etc., you have to do whatever set up your code expects.
See also "cron_diagnose.sh" and /usr/bin/cron-config.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list