Web Hosting Talk







View Full Version : cron newbie


Juan
06-14-2001, 01:38 PM
whats the line I have to insert in a cron.d file to run a file every 15 mins?

jtan15
06-14-2001, 01:47 PM
0,15,30,45 * * * * "command to run"

jtan15
06-14-2001, 01:50 PM
Oh, wait. I'm sorry. You are talking about a Cobalt RaQ. You can just stick the command you want to execute in a shell script and put it in "/etc/cron.quarter-hourly". E.g.:

#!/bin/sh
chmod 755 /home/site


That would chmod /home/site 755 every fifteen minutes.

jaime
06-14-2001, 03:10 PM
As Vincent said, just place your shell scripts in /etc/cron.*

* = daily, quarter.daily, monthly .... check the different cron dirs.

works fine.