[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cron and Anacron for newbies (noffle also)



If you want to test if the jobs are running, to this:

# TMPFILE="`mktemp /etc/cron.daily/test.XXXXXX`"
# cat  > "$TMPFILE" <<EOF
 #!/bin/sh
 echo "cron.daily works"
 EOF
# chmod 755 "$TMPFILE"

Then wait a day or so and see if you get a message saying "cron.daily
works". If you get it then cron.daily is being run.

Scotty Fitzgerald wrote:
> David Mandelberg wrote:
> 
> 
>>Scotty Fitzgerald wrote:
>>
>>>1) how do I verify that one of the jobs in /etc/cron.daily/ ran to
>>>successful completion
>>
>>The output of the jobs in /etc/cron.daily/ is emailed to root, so you
>>just need to set up a mta to forward it to your real address (unless you
>>already have a working mta config, in which case, just check root's mail).
>>
> 
> Well, I hope no news is good news, because I might have a problem elsways.
> 
> I have my mail forwarded to a user account, which I check with kmail.  
> Since I am receiving no daily reports, does this mean that none of my daily 
> jobs are running?
> 
> If so, I think it may be because I am not up 24/7.  Is there a way for me 
> to tell anacron to run all the contents of the cron.daily folder (since it 
> is set up for systems like mine which are not 24/7.)
> ---
> Scotty
> 
> 

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/CM$/CS>$/CC/IT$/M/S/O/U dpu s+:++ !a C++$>C+++$
UB+++>++++$L++++$*-- P+>++$ L+++(++++)$ E-(---) W+++>$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)>$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e->++++ h* r? z*
------END GEEK CODE BLOCK------

David Mandelberg
webmaster@eth0.is-a-geek.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: