Skip to main content

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

quote posted vksingh view post
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:
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''.
e.g.
code:
0 1 * * * sh /home/vivek/ifconfig/college.sh
which means "run command @ 1:00 on every day in every month".

h


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] How to run .sh file using crontab?


Ubuntu

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support