cron and dig

Mathias Koerber mathias at koerber.org
Sun Jan 23 05:38:59 UTC 2000


I can't help you with that mail status question, but
    a) cron *always* sends a commands' output via email, even if
        things are ok.
    b) you can avoid that by redirecting both stdout and stderr to a file
                20 1 * * * /root/scripts/getDNS >/tmp/getDNS.out 2>&1
        (or to /dev/null if you don't care)

regards

-----Original Message-----
From: Bruce Ordway <ordway at uswest.net>
Newsgroups: comp.protocols.dns.bind
To: comp-protocols-dns-bind at moderators.isc.org
<comp-protocols-dns-bind at moderators.isc.org>
Date: Sunday, January 23, 2000 6:43 AM
Subject: cron and dig


|Hi,
|I've been working on sendmail and DNS. I recently tried to automate my
|refresh of the db.cache file with cron.
|I wrote a script getDNS with the command "dig @e.root-servers.net .
|ns>/var/named/db.cache"
|then created a file crontab with the line:
|20  1  *  *  *  /root/scripts/getDNS
|Then I executed the command crontab crontab.
|
|Today I checked the contents of my /var/log/cron file and saw the following
|lines:
|
|root (01/22-01:20:00-5345) CMD (/root/scripts/getDNS)
|root (01/22-01:20:15-5343) MAIL (mailed 80 bytes of output but got status
|0x0046)
|
|I am assuming that there was some mail sent about what happened with getDNS
|when cron executed the command. I am also assuming that the message had a
|probelm because I have been screwing around with sendmail.
|
|My question is this:
|How can I figure out what this means?
|root (01/22-01:20:15-5343) MAIL (mailed 80 bytes of output but got status
|0x0046)
|
|Thanks,
|Bruce Ordway
|
|Also, today when I tried dig @e.root-servers.net . ns>/var/named/db.cache,
I
|received a timeout error.
|I changed it to dig @a.root-servers.net . ns>/var/named/db.cache and it
|worked.
|
|There seem to be a few .root-servers.net , what are the rules for using
|them?
|
|Thanks again
|
|




More information about the bind-users mailing list