From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97673631926407.tru64-unix-managers.marc@archive.invalid> From: Don Newcomer Date: Wed, 13 Dec 2000 19:37:40 +0000 To: tru64-unix-managers Subject: SUMMARY: Perl script in cron X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97673631926407 Boy, it only took about 5 minutes for John Speno to point out that I had too many fields on the line. I took out one of the asterisks and it worked like a charm! *sigh* ================================================================================ Don Newcomer Dickinson College Associate Director, System and Network Services P.O. Box 1773 newcomer@dickinson.edu Carlisle, PA 17013 Phone: (717) 245-1699 FAX: (717) 245-1690 On Wed, 13 Dec 2000, Don Newcomer wrote: > I'm trying to get a Perl script to run in cron without a lot of success. > We're using Digital UNIX v4.0F and Perl 5.004-04. The script is written in > Perl and I'm trying to get the output to go to a logfile. Here are some of > the things I've tried to no avail: > > 0 1 * * * * /usr/local/bin/purge.pl > /usr/local/purge.log 2>&1 > 0 1 * * * * /usr/bin/perl /usr/local/bin/purge.pl > /usr/local/purge.log 2>&1 > 0 1 * * * * /usr/bin/perl /usr/local/bin/purge.pl >& /usr/local/purge.log > 0 1 * * * * /bin/csh /usr/local/bin/purge.pl >& /usr/local/purge.log > > I know I'm missing something obvious (except for the fact that cron drives > me crazy!) but I can't seem to get it to work. In fact, in addition to not > creating the log, the script doesn't appear to run at all in the > above-listed instances. It runs fine if I do it from an interactive shell. > Any help would be greatly appreciated.