LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   crontab -e load a file into (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-e-load-a-file-into-821796/)

casperdaghost 07-23-2010 09:29 PM

crontab -e load a file into
 
before i leave for work I often make a copy of my crontab file

crontab -l > /home/casper/backup`date +%Y%m%d

when the crontab gets corrupted or someone changes it - i reload the backup - usually by opening up the crontab with crontab -e, then opening up the backupYYYYmmdd file in a text editor and cutting and pasting the backup contents into crontab -e

just wondering - is there a quicker way. I tired

crontab -e < /home/casper/backup20100723

but it does not work.

smoker 07-24-2010 01:24 AM

man crontab

Code:

crontab /home/casper/backup20100723


All times are GMT -5. The time now is 04:35 PM.