Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Perl script problem under cron

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-feed3!btnet!carbon.eu.sun.com!new-usenet.uk.sun.com!not-for-mail
From: Ronald Kuehn <ronald.ku...@sun.com>
Newsgroups: comp.lang.perl,comp.sys.sun.admin,comp.unix.solaris
Subject: Re: Perl script problem under cron
Date: 19 May 2003 09:26:08 GMT
Organization: Sun Microsystems, Inc.
Lines: 35
Message-ID: <baa7vg$jkt$1@new-usenet.uk.sun.com>
References: <2lZxa.36967$h42.22556@twister.nyc.rr.com> <3ec868cf$0$18028$afc38c87@news.optusnet.com.au>
     <hVZxa.36971$h42.2005@twister.nyc.rr.com> <3ec86f78$0$18028$afc38c87@news.optusnet.com.au>
NNTP-Posting-Host: sunhsc.germany.sun.com
X-Trace: new-usenet.uk.sun.com 1053336368 20125 129.157.133.197 (19 May 2003 09:26:08 GMT)
X-Complaints-To: usenet@new-usenet.uk.sun.com
NNTP-Posting-Date: 19 May 2003 09:26:08 GMT
X-Newsreader: NN version 6.5.0 CURRENT #121

> > "Paul Tazzyman" <ptazzy...@yahoo.com> wrote in message
> > news:3ec868cf$0$18028$afc38c87@news.optusnet.com.au...
> > 
> >>Rodrick Brown wrote:
> >>
> >>>I wrote this perl script when I run it from via command line it runs
> > 
> > fine.
> > 
> >>>but when I schedule it from cron i'ts returning and error in the script
> > 
> > I
> > 
> >>>make 2 system() calls calling /usr/bin/mailx
> >>>
> >>>Your "cron" job on sparky
> >>>* /usr/bin/perl /export/home/rbrown/ftp_code/interface.pl
> >>>
> >>>produced the following output:
> >>>
> >>>sh: 4Missy: cannot execute

The corresponding line in your crontab seems garbled.
It looks like cron treats
"* /usr/bin/perl /export/home/rbrown/ftp_code/interface.pl"
as the command to execute. Your crontab line probably has too many
fields like this

0 * * * * * /something

so cron treats the last * as part of the command to execute.

Ronald
-- 
* Experience is what you get when you were expecting something else.