[PLUG] Cron advice needed
Galen Seitz
galens at seitzassoc.com
Sat Apr 23 16:36:31 UTC 2016
On 04/23/16 09:22, John Jason Jordan wrote:
> Using Russel's advice and yours above I created the crontab (using
> nano) and added the following command:
>
> 0 3 * * * cp -auf /home/jjj/Mail /media/jjj/Data/
>
> The command executed, but this morning I decided to enhance it by
> adding your handy reminder and a couple additional # lines copying and
> pasting your explanation of '-auf' for future reference. When I went to
> save my crontab to disk (Crtl-o in nano) I noticed from the prompt that
> nano wanted to write the file as:
>
> /tmp/crontab.2Atvun/crontab
>
> This puzzles me. I thought things in /tmp were only for temporary use.
> Why is the file saved to /tmp? Shouldn't it be saved to someplace in ~/?
I don't know for certain, but presumably crontab does some
post-processing, perhaps checking for syntax errors, then moves the file
into the appropriate place. To confirm that's the case, just look for
your file using sudo in the /var/spool directory that Brian mentioned.
Something like:
sudo ls -R /var/spool/cron/
galen
--
Galen Seitz
galens at seitzassoc.com
More information about the PLUG
mailing list