Section One BBS

Welcome, Guest.


Subject: Ho to create more events Date: Wed Jan 11 2017 07:12 am
From: Nicholas Boel To: Jeff Smith

Hello Jeff,

On Tue Jan 10 2017 22:47:00, Jeff Smith wrote to Tony Comandini:

 JS> For a task to be run every 20 minutes I would simply use a crontab
 JS> line as:

 JS> */20 * * * * /<path to program or script>/<program or script filename>

 JS> You could for example use the cron line to run a backup of all your
 JS> user accounts at 5 a.m every week with:

 JS> 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

As you mention in your first crontab line, it is good practice to use the full
path to the program or script in crontab. So your second line would be better
with: /bin/tar, or /usr/bin/tar - even though tar is most likely in your system 
PATH settings.

Regards,
Nick

... "Не знаю. Я здесь только работаю."
--- GoldED+/LNX 1.1.5-b20161221
 * Origin: thePharcyde_ distribution system (Wisconsin) (1:154/10)

Previous Message       Next Message
In Reply To: Re: Ho to create more events (Jeff Smith)
Replies: Ho to create more events (Tony Comandini)Ho to create more events (Jeff Smith)