Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* cron-crash !!!
@ 2001-08-24  0:50 Super-User
  2001-08-24  3:15 ` no one
  2001-08-24  7:10 ` Chris Bullivant
  0 siblings, 2 replies; 3+ messages in thread
From: Super-User @ 2001-08-24  0:50 UTC (permalink / raw)


hello all!
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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cron-crash !!!
  2001-08-24  0:50 cron-crash !!! Super-User
@ 2001-08-24  3:15 ` no one
  2001-08-24  7:10 ` Chris Bullivant
  1 sibling, 0 replies; 3+ messages in thread
From: no one @ 2001-08-24  3:15 UTC (permalink / raw)


Super-User <rodrigo@dgf.uchile.cl> wrote in 
<3B85A4E6.BF559C42@dgf.uchile.cl>:

>hello all!
>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

What about redirecting stderr to /dev/null?  What about the possibility 
that your cron job is running your profile and your profile has an stty 
line in it?  There are a bunch things that could be causing this.  

do (set -x) and redirect stdout and stderr to a file to see exactly where 
it's crashing...


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cron-crash !!!
  2001-08-24  0:50 cron-crash !!! Super-User
  2001-08-24  3:15 ` no one
@ 2001-08-24  7:10 ` Chris Bullivant
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Bullivant @ 2001-08-24  7:10 UTC (permalink / raw)


> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-24  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-24  0:50 cron-crash !!! Super-User
2001-08-24  3:15 ` no one
2001-08-24  7:10 ` Chris Bullivant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox