tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Perl script in cron
@ 2000-12-13 19:29 Don Newcomer
  0 siblings, 0 replies; only message in thread
From: Don Newcomer @ 2000-12-13 19:29 UTC (permalink / raw)
  To: tru64-unix-managers

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.

================================================================================
Don Newcomer                                            Dickinson College
Associate Director, System and Network Services		P.O. Box 1773
newcomer@dickinson.edu                                  Carlisle, PA  17013
                                                        Phone: (717) 245-1256
                                                          FAX: (717) 245-1690

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-12-13 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-13 19:29 Perl script in cron Don Newcomer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox