Off-Topic > Off-Topic - Tiny Tux's Corner

[Solved] Learning Cron

(1/3) > >>

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*"
/sys/bus/pci/drivers/JMicron IDE
--- End code ---

I'm guessing that I should use /var/spool/cron/crontabs ?
Its recommended here as well :

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 :)

Use the crontab command.

Thanks for the input gerald_clark

--- Code: ---tc@box:~$ crontab -e
Can't open display:
--- End code ---

--- Code: ---tc@box:~$ crontab -l

--- End code ---

I'm a bit stuck.

Looks like your remaster is broken.
You should not be getting htat error.

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
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.


[0] Message Index

[#] Next page

Go to full version