I need a script that will reboot my vps every hour and I need to find a cgi or other similar script to be called from the cron: 30 * * * * Can someone suggest anything?
While we are talking about Cron Jobs, I could use a script that copies a file from a low level directory in my site to the root. Assume the file is here: http://www.mysite.com/folder1/folder2/xxx.gzip And I want it here: http://www.mysite.com/xxx.gzip And I want that to happen every night (because a new file gets overwritten in the lower folder every day). Can anyone help? I know nothing about this.
30 * * * * root /sbin/reboot Code (markup): should do for a normal server, replace with whatever you need for the vps.
One simple way to do this is to write a PHP script that does what you want it to do, and then execute that script in cron 30 * * * * php /home/me/myscript.php > /dev/null Code (markup): Especially if you are doing something as simple as copying files, you would be better off spending a couple minutes writing your own rather than trusting someone else's script.