comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Running IDL from cron
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Running IDL from cron [message #23862 is a reply to message #23860] Thu, 22 February 2001 10:44 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Gwyn Fireman <Gwyn.Fireman@gsfc.nasa.gov> writes:
> Hi, everyone -
>
> With Deja gone and Google barely functional I have to ask here what I'm
> sure has been addressed before:

Heh, I tried this in my newsgroup archive and nothing found. Hmm.

The main problems I've found with running cron jobs are:
1. environment variables not set, and
2. programs won't run because path is not set right (consequence of #1)

The answer to number 2 is to specify all program paths explicitly. As
for number 1, I would say that you should to write your shell script
to set those variables explicitly as well, and bypass your .cshrc.
Something like this:

#!/bin/sh
HOME=/home/fireman
$HOME/bin/setup_dirs

IDL_PATH=+$HOME/lib/idl:+/usr/local/rsi/idl/lib
EXPERIMENT_DIR=/data/fireman
/usr/local/bin/idl $HOME/scripts/run_job.pro

This way everything is explicit and there isn't a chance for cron to
monkey with it.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Repeats and Triangulation
Next Topic: Re: significant figures function?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:55:40 PDT 2025

Total time taken to generate the page: 0.40047 seconds