Koozali.org: home of the SME Server

Where do I put my con Job Script

matt001

Where do I put my con Job Script
« 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

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Where do I put my con Job Script
« Reply #1 on: March 27, 2005, 11:23:40 AM »
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.

guest22

Where do I put my con Job Script
« Reply #2 on: March 27, 2005, 12:27:02 PM »
I mostly use the free editor www.notetab.com for editing unix files on a windows machine.

guest