WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cron ??  (Read 3958 times)

Offline SpartanTexan99

  • Newbie
  • *
  • Posts: 19
cron ??
« on: February 11, 2010, 11:00:42 AM »
Anybody point me to how to get cron.daily running on tiny core linux 2.0?  I'd like to also ensure it starts from bootup.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: cron ??
« Reply #1 on: February 11, 2010, 05:09:04 PM »
Anybody point me to how to get cron.daily running on tiny core linux 2.0?  I'd like to also ensure it starts from bootup.
Add to "/opt/bootlocal.sh"
crond -L /dev/null 2>&1

Modify :
"/var/spool/cron/crontabs/root"

such as execute every 15 minutes myscript:

"*/15 * * * * /home/tc/myscript.sh"



« Last Edit: February 11, 2010, 05:13:54 PM by bigpcman »
big pc man

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: cron ??
« Reply #2 on: February 11, 2010, 05:14:44 PM »
1. Use browser to google man cron to see how to make entry.
2. Use crontab -e  to enter/edit crontab entry.
3. Use echo var/spool/cron/crontabs >> /opt/.filetool.lst to backup your crontabs
3. Use cron boot code or add it to your boot stanza and reboot or use control panel Cron button to manually start stop Cron.

After reboot:
Use crontab -l to list crontabs.
« Last Edit: February 11, 2010, 05:16:17 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline SpartanTexan99

  • Newbie
  • *
  • Posts: 19
Re: cron ??
« Reply #3 on: February 12, 2010, 02:45:34 PM »
thanks for the posts, I have used cron before on ubuntu, so just needed it for the embedded product I am working on, thanks as always.  will update after I try this.