Thread: How to run .sh file using crontab?
hi,
have .sh file want run using crontab @ specific time root privilege.
put entry in root's crontab following:
sh /home/vivek/ifconfig/college.sh
but, file not executed @ given time.
please help.
thanks,
vivek
did include necessary time fields:
e.g.code:field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 sun, or use names) field may asterisk (*), stands ``first-last''.
which means "run command @ 1:00 on every day in every month".code:0 1 * * * sh /home/vivek/ifconfig/college.sh
h
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] How to run .sh file using crontab?
Ubuntu
Comments
Post a Comment