Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this a valid crontab entry? 1

Status
Not open for further replies.

awolff01

Programmer
Jun 17, 2003
55
US
Would this be a valid crontab entry?

05 00 * * * perl /var/log/myscript.pl argument1


specifically I want to know if this script would be executed as written or do I need a shell script with the command "perl /var.log/myscript.pl argument1" and then have my crontab entry point only to the shell script?
Thanks.
 
Personally I point all my crontabs to Executable scripts. It makes editing easier and avoids messing up you crontab for other scripts you may be running later.

It should run as you have it as long as "Root" can find the "perl" executable. It is recommended that you put the full path to your executable i.e. /usr/bin/perl, then it should execute :)

Cheers,

TP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top