Portal Home > Knowledgebase > Articles Database > So i want to do this!! But how to Do It ??


So i want to do this!! But how to Do It ??




Posted by Energizer Bunny, 01-12-2008, 04:14 PM
So what i wanaa do is this. Run a command say "bash server.sh &" everyday at 7pm using either a. Script or b. Cronjobs And to terminate it at 5 Am in morning command "bash kill-server.sh" via a script or crons. How can i go about it, say the above file is located in folder /home/myserver/ And it has Linux Centos 5 on it . How to do it ? Anyone care to help out !! Thanks

Posted by psyxakias, 01-12-2008, 06:44 PM
This should work on your crontab: Explanation about the first 5 values: minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6)



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
nectartech.com down? (Views: 627)

Language: