Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl script fails when run through a cronjob

0 views
Skip to first unread message

Mike J

unread,
Mar 13, 2002, 5:01:52 PM3/13/02
to
Any help on the following would be greatly appreciated!

I am able to successfully execute a perl script (assets1.pl) from the shell
(sh), but when I execute the same perl script via a cronjob it fails on the
following line of code:
open(INF, "<assets1.xml") or die "Could not open assets1.xml for input\n";
* As a result I get the message "Could not open assets1.xml for input" in
the cronjob owner's mail folder
----------------------------------------------------------------------------
---------------
assets1.xml does exist
assets1.xml has read and write privileges for owner, group, and other set
just to make sure this wasn't an issue

Thanks,
Mike


Kiss Gabor

unread,
Mar 14, 2002, 2:24:40 AM3/14/02
to
In article <u8vivl8...@corp.supernews.com>,

"Mike J" <mjjwe...@hotmail.com> writes:
> I am able to successfully execute a perl script (assets1.pl) from the shell
> (sh), but when I execute the same perl script via a cronjob it fails on the
> following line of code:
> open(INF, "<assets1.xml") or die "Could not open assets1.xml for input\n";

Change directory or give full path to open().

Gabor

0 new messages