Re: cron + cygwin
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Mon, 27 Mar 2006 08:22:28 -0500
On 26 Mar 2006 15:37:55 -0800, leonardomachado@xxxxxxxxx
<leonardomachado@xxxxxxxxx> wrote:
Why is cron+cygwin not working with my perl script?If everything works except script.pl, why did you not include that?
I have a perl script that just loads some modules an create a log file
(log.txt). Just for testing
c:\directory\script.pl
I have created a scritp BAT with the following content:
echo "teste1" > c:/directory\log1
cd c:\directory
c:\perl\bin\perl c:\directory\script.pl
echo "teste2" > c:/directory\log2
I have the following crontab:
* * * * * c:\\directory\\script.BAT
------------ Result -----------
log1 and log2 are created. Which means the cron is fine and the BAT
script is fine.
log.txt, from perl script.pl has not created a log.txt file. Why
?????????
In real Unix systems, crontab problems are often the result of
environment variables that are not set by cron. Could this be your
problem?
--
If you put your supper dish to your ear you can hear the sounds of a
restaurant.
-- Snoopy
.
- References:
- cron + cygwin
- From: leonardomachado
- cron + cygwin
- Prev by Date: Re: shell
- Next by Date: Re: shell
- Previous by thread: cron + cygwin
- Next by thread: Re: Difference between tar and ar
- Index(es):
Relevant Pages
|