From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,266ef83db5df039f X-Google-Attributes: gidfa528,public From: Eric Bennett Subject: Re: Cron Date: 2000/10/24 Message-ID: <8t5l3k$jjn$2@news01.cit.cornell.edu>#1/1 X-Deja-AN: 685510585 Sender: verified_for_usenet@cornell.edu (emb22 on emb22.resnet.cornell.edu) References: X-Complaints-To: usenet@news01.cit.cornell.edu X-Trace: news01.cit.cornell.edu 972445620 20087 128.253.200.106 (25 Oct 2000 03:47:00 GMT) Organization: Cornell University User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: 25 Oct 2000 03:47:00 GMT Newsgroups: comp.unix.tru64 In article , "Arthur Dalessandro" wrote: > I have an ASE cluster running; 1 node active, on node on standby.. What > I'd > like to do is have a nightly cronjob run a script to mail overquota > messages > to users, question here is how does cron react to running a file that > does > not exists. ie node A has control over a filesystem where the script > would > run from, node B tries to run a script that does not exists.. Does anyone > know how cron will react? For other scripts, I have cron run a local > script > to check the existence of the real script on the SAN, if it exists, it > runs, > if it does't the local cron script dies.... Any ideas? I didn't see any > cron newsgroups so I posted in a newsgroup for the operating system > itself.. I do think different crons behave differently. I've misconfigured crontab entries under IRIX and Tru64, and my recollection is that IRIX cron mails the user complaining that such and such command can't be found, while Tru64 cron just ignores it and goes about its business (but presumably logs it in /usr/var/adm/cron/log although I've never looked in there). But, it's been awhile since I messed with our crontabs, so I could be mistaken. > Thanks in advance for any advice.. I'm not sure I completely understand your setup, but this may be applicable: I have one script that scans all our machines for modified files in the wee hours of the morning and figures out how much space they will occupy if we back them up. All the machines have that script and the same cron files, but obviously each machine doesn't need to do the calculation, so the script starts with this: if ( "${HOST}" != "proline.chem.cornell.edu" ) then echo "This script must be run on proline." exit endif I like this approach because it makes it easier to clone machine configurations. The entry in the cron file redirects script output to /dev/null, otherwise I believe cron will mail the output of the job to the user, which in this case is not desirable (but the message still needs to be there in case the script is run manually). -- Eric Bennett ( http://www.pobox.com/~ericb/ ) Cornell University / Chemistry & Chemical Biology Lighthouse, n. A tall building on the seashore in which the government maintains a lamp and the friend of a politician.