WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Crontab  (Read 6016 times)

Offline Kj4bnh

  • Newbie
  • *
  • Posts: 24
Crontab
« on: July 29, 2014, 01:39:40 PM »
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 30, 2014, 01:39:46 AM by Kj4bnh »

Offline gerald_clark

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

Offline Kj4bnh

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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Crontab
« Reply #3 on: July 30, 2014, 08: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, 12:45:41 PM »
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, 12:54:21 PM »
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, 01:12:36 PM »
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, 01:26:17 PM »
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, 01:36:15 PM »
Roger that.  Hopefully the link will help me out.  If not there is always classes to take and professors to annoy.