Off-Topic > Off-Topic - Tiny Tux's Corner
[Solved] Learning Cron
remus:
Hi all :)
I've remastered tinycore to always fire up cron for me, so I can schedule some backups to another machine on our network.
I did a search for cron related files on tinycore 3.8.4 and found the following
--- Code: ---$ sudo find / -name "*cron*"
/etc/init.d/services/crond
/usr/bin/crontab
/usr/sbin/crond
/sys/bus/pci/drivers/JMicron IDE
/var/spool/cron
/var/spool/cron/crontabs
/var/run/crond.pid
--- End code ---
I'm guessing that I should use /var/spool/cron/crontabs ?
Its recommended here as well : http://www.pathname.com/fhs/pub/fhs-2.3.html#VARSPOOLCRONCRONANDATJOBS
Thanks in advance for your comments.
Once I setup this regular backup management will put some important files onto the test samba server for a few weeks and then review the outcome :)
gerald_clark:
Use the crontab command.
remus:
Thanks for the input gerald_clark
--- Code: ---tc@box:~$ crontab -e
Can't open display:
--- End code ---
--- Code: ---tc@box:~$ crontab -l
tc@box:~$
--- End code ---
I'm a bit stuck.
gerald_clark:
Looks like your remaster is broken.
You should not be getting htat error.
remus:
I guessed that the problem had something to do with the system not having an editor set to open the crontab file for editing.
So googled a bit and found the following page
http://www.adminschoice.com/crontab-quick-reference
With the following bit of help
--- Quote ---export EDITOR=vi ;to specify a editor to open crontab file.
--- End quote ---
Running that command gets things working when I run
--- Code: ---crontab -e
--- End code ---
Now a blank file is opened with the following at the bottom
--- Code: ---- /var/spool/cron/crontabs.2224 0/0 100%
--- End code ---
Sooo..... I'll try booting up a stock tinycore 3.8.4 disc with bootcode cron and see if it behaves the same.
Navigation
[0] Message Index
[#] Next page
Go to full version