From: Eric Bennett <ericb@pobox.com>
Subject: Re: Cron
Date: 2000/10/24 [thread overview]
Message-ID: <8t5l3k$jjn$2@news01.cit.cornell.edu> (raw)
In-Reply-To: sv6bkd195iufde@corp.supernews.com
In article <sv6bkd195iufde@corp.supernews.com>, "Arthur Dalessandro"
<adalessandro@odione.com> 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.
next prev parent reply other threads:[~2000-10-24 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-22 4:00 Cron Arthur Dalessandro
2000-10-24 4:00 ` Eric Bennett [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-10-23 3:20 Cron Jay Vlack
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox