Moderator Control Panel ]

crontab not found

crontab not found

Postby afreddoss » Tue Dec 22, 2015 9:13 pm

i want reboot moi everyday at 6 morning but i can't find any crontab command please how can i do that ??
afreddoss
 
Posts: 14
Joined: Sat Jul 11, 2015 10:48 pm

Re: crontab not found

Postby afreddoss » Wed Dec 23, 2015 5:54 pm

any idea ?
afreddoss
 
Posts: 14
Joined: Sat Jul 11, 2015 10:48 pm

Re: crontab not found

Postby steven » Mon Dec 28, 2015 6:14 pm

Hi afreddoss

you can do like this:

create a file such as root
write the following command to it
0 6 * * * /sbin/shutdowm -r now
place the file to /var/spool/cron/crontab folder
#chmod 777 /var/spool/cron/crontab/root

0 6 * * * /sbin/shutdowm -r now it means it will auto reboot every 6:00 am

More question please feel free to contact us.

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm


Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 1 guest