Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: matt001 on March 27, 2005, 07:40:11 AM
-
Hi Guys
I have got SME Server 6.0.1 and I have coded up a cron job.
I have created the script in notepad on my Windows machine how do I name it I want to call it backup whats the file ending for example .php I don't know what the ending for a cron job is. Where do I put the file and how do I run the file manually and how do I automate the script to run during the day or night.
Thanks
Matthew
-
Hi!
Just send it with an ASCII transfer to the SME server (to transform the Windows CR-LF to the Unix-like LF)
and put it in /usr/bin/, chmod it executable, then create a cron job in /etc/cron.d, which starts this script.
Or copy the script itself to /etc/cron.daily, /etc/cron.hourly etc.
Just remember to include full paths to the commands in the script, since there is no search path within cron jobs.
-
I mostly use the free editor www.notetab.com for editing unix files on a windows machine.
guest