Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Cron-Noob

$
0
0
Hi guys!

Consider the following PERL script,

Code:

#!/usr/bin/perl

my $userID = `whoami`;
open(TMP, ">user.txt");
print TMP "$userID";
close(TMP);

Run on the command line it works no problem.
Run using crontab it doesn't work.
Where do I go to check errors from crontab?
I've read things about the cron ENVIRONMENT which I don't understand.
Could someone please explain to me what I need to know about crontab before I start using it?

crontab line looks like this:
Code:

8 15 * * * /location/of/my/script/cronprob.pl
Thanking you :)

Viewing all articles
Browse latest Browse all 16232

Trending Articles