Re: cron + cygwin



On 26 Mar 2006 15:37:55 -0800, leonardomachado@xxxxxxxxx
<leonardomachado@xxxxxxxxx> wrote:
Why is cron+cygwin not working with my perl script?

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
?????????

If everything works except script.pl, why did you not include that?
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
.



Relevant Pages

  • RE: perl script on remote server linux
    ... Let say if "error" keyword is not there in the log file then the file which is being created as a part of the redirection (output file) is empty. ... perl script on remote server linux ...
    (perl.beginners)
  • Re: perl script not running through cron tab
    ... with your environment, contact your sysadmin or manager instead ... cron has been disabled either for you explicitly or for almost every ... If the horrid path you gave is not a local filesystem there are a couple ... Just because you had access to reach the perl script doesn't mean ...
    (comp.unix.bsd.freebsd.misc)
  • Re: what do you think of these instructions for install & hardening?
    ... so that I have a full log file of the build process, ... I sometimes use a small Perl script to add timestamps at the ... > I've been running Unix on my home ...
    (comp.unix.bsd.freebsd.misc)
  • Re: my log files-is there any problem
    ... > Here is my log file which is generated by Logwatch. ... > Unknown Entries: ... Those arise from cron jobs being run. ... > I am little concerned with these 2 means are these the normal entries ...
    (Fedora)
  • Re: process all lines after a match
    ... You can try writing a PERL Script ... which stores the last seek or read position of a file ... and continues to read the log file from the terminated position ... program that converts the logfile to human readable format. ...
    (comp.unix.shell)