* Cron
@ 2000-10-22 4:00 Arthur Dalessandro
2000-10-24 4:00 ` Cron Eric Bennett
0 siblings, 1 reply; 3+ messages in thread
From: Arthur Dalessandro @ 2000-10-22 4:00 UTC (permalink / raw)
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..
Thanks in advance for any advice..
-Art
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cron
@ 2000-10-23 3:20 Jay Vlack
0 siblings, 0 replies; 3+ messages in thread
From: Jay Vlack @ 2000-10-23 3:20 UTC (permalink / raw)
I'm making a lot of assumptions here because you gave no details about your system's configuration, versions, etc., but here I go...
Why not place the script that you want to run out of cron on one of the filesystems that are on your shared SCSI bus ? If you don't already have an NFS service that's also mounted on the two ASE members, you could make a simple one for your cron scripts.
--> Jay
In message <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..
> Thanks in advance for any advice..
> -Art
>
--
Spam note: remove all X's from my email address to reply.
Posted with Ink Spot for Windows CE.
http://www.dejavusoftware.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cron
2000-10-22 4:00 Cron Arthur Dalessandro
@ 2000-10-24 4:00 ` Eric Bennett
0 siblings, 0 replies; 3+ messages in thread
From: Eric Bennett @ 2000-10-24 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-10-24 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-23 3:20 Cron Jay Vlack
-- strict thread matches above, loose matches on Subject: below --
2000-10-22 4:00 Cron Arthur Dalessandro
2000-10-24 4:00 ` Cron Eric Bennett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox