WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Crontab  (Read 5278 times)

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Crontab
« on: July 29, 2014, 10:39:40 AM »
Hi all, just downloaded Microcore for use.  Could someone point me in the correct directions to the proper useage of Crontab?  In my way of thinking I should have been able to just edit and save and it should run, but not so.  * * * * * date, in my way of thinking should have displayed this every minute.
« Last Edit: July 29, 2014, 10:39:46 PM by Kj4bnh »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Crontab
« Reply #1 on: July 29, 2014, 11:14:58 AM »
run "crontab -help"

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Re: Crontab
« Reply #2 on: July 29, 2014, 10:41:16 PM »
This gives me a invalid option.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Crontab
« Reply #3 on: July 30, 2014, 05:50:58 AM »
I meant 'crontab --help' but either way it gives you a usage page.

Cron runs unattached to any terminal, so  your example can't display anything.
you would need
* * * * * date > /tmp/date


Did you start crond ?

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Re: Crontab
« Reply #4 on: July 30, 2014, 09:45:41 AM »
No I did not start crond, but I have now.  Now to figure out how to stop it short of a reboot.  Thanks for your help.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Crontab
« Reply #5 on: July 30, 2014, 09:54:21 AM »
killall crond
I suggest you read http://rute.2038bug.com/index.html.gz

Core is not a good choice for learning Linux.

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Re: Crontab
« Reply #6 on: July 30, 2014, 10:12:36 AM »
Yup that did it.  Thanks for the link.  I chose the core because of the lack of GUI, the way it was back in the 80's.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Crontab
« Reply #7 on: July 30, 2014, 10:26:17 AM »
Have fun. Just remember that Core is not your normal distro.
It is a toolkit and requires that you do things manually that most distros do automatically.
For Example, if you want cron running at boot you need to add crond to your /opt/bootlocal.sh and add var/spool/cron/crontabs to /opt/,filetool.lst and do a backup.

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Re: Crontab
« Reply #8 on: July 30, 2014, 10:36:15 AM »
Roger that.  Hopefully the link will help me out.  If not there is always classes to take and professors to annoy.