Results 1 to 6 of 6
Dear All,
I am newbie in the vast field of linux.
I have a perl scrip sys.pl which i can easily execute in command line by typing
./sys.pl
i.e
imtiaz@linux-q01x:~> ...
- 06-22-2007 #1Banned
- Join Date
- Jun 2007
- Posts
- 3
cron job
Dear All,
I am newbie in the vast field of linux.
I have a perl scrip sys.pl which i can easily execute in command line by typing
./sys.pl
i.e
imtiaz@linux-q01x:~> cd folder
imtiaz@linux-q01x:~/folder> /.sys.pl
now i want to set up a cron job for this script to execute automatically on every week on Monday at 1:00 PM
can you please tell me how to set up a cron job for this
I am using SUSE 10.2
- 06-22-2007 #2
Hey,
Edit your crontab file by giving crontab -e and edit the file exactly as
0 13 * * monday /usr/bin/myperlscript -n 1 -b -S
'0' and '59' (minutes of the hour). 13 is your 1 pm(hours of the day)
This command will execute every day at 1 pm. Note that the script which you wanted to run under crontab should be in your /usr/bin/myperlscript or any other where you have installed perl.Regards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
- 06-22-2007 #3
try
#crontab -e
add a line as :
0 13 * * mon ./sys.pl
else refer to man 5 crontab for further details.
- 06-22-2007 #4Banned
- Join Date
- Jun 2007
- Posts
- 3
- 06-22-2007 #5Banned
- Join Date
- Jun 2007
- Posts
- 3
- 06-22-2007 #6
Hey,
Well first cross check it by running some test script of perl in that directory under crontab. If success then try to run any script you want.Regards,
who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html


Reply With Quote
