Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: CBullivant@orange.net.au (Chris Bullivant)
Subject: Re: cron-crash !!!
Date: 24 Aug 2001 00:10:01 -0700	[thread overview]
Message-ID: <5b812609.0108232310.482bf5dd@posting.google.com> (raw)
In-Reply-To: 3B85A4E6.BF559C42@dgf.uchile.cl

> I have 5 process that I need to run during the nigth....
> when I excecute the master process by myself  (using a terminal),
> everything
> works fine.... however, when I use "crontab"  or "at" ...  I get a "core
> dump" in one
> of my tasks (f77 program, that produce outputs to the terminal ) ...
> I have set the TERM enviroment variable, ... redirected the output to
> /dev/null ...
> ....
> .... etc ... etc...
> 
> but, I get the same all the time...
> Any Idea ?
> (I have a big cron-headache now, .. )
> 
> Rodrigo

You may need to set up the environment within cron to be similar to
your interactive. Run .profile (Bourne or Korn) or .cshrc (C-Shell)
first and then set the output variables. Best to put it all together
in a script. e.g.

in Bourne
#!/bin/sh

. .profile

TERM=""; export TERM
<unset other interactive variables>
run prog

in C-Shell
#!/bin/csh

source .login
source .cshrc

unset TERM
<unset other interactive variables>
run prog

Hope this helps,

Chris Bullivant


      parent reply	other threads:[~2001-08-24  7:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-24  0:50 cron-crash !!! Super-User
2001-08-24  3:15 ` no one
2001-08-24  7:10 ` Chris Bullivant [this message]
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