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 #23826] Fri, 23 February 2001 15:53 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Vapuser <vapuser@catspaw.jpl.nasa.gov> writes:

> Cron uses a crippled environment in the Bourne shell, it defines
> only a limited number of environmental variables.

I've been able to use a fully functional C shell in my cron jobs, by the simple
expedient of explicitly telling it what shell to run. This is done by putting

#!/bin/csh

as the first line of the script. For example, the extremely simple script

#!/bin/csh
printenv

when run as a cron job, demonstrates that my .cshrc file is being automatically
executed. On the other hand, my .login file is not. To do that, I would have
to use

#!/bin/csh
source .login
printenv

which works, although I do get a "not a terminal" error. For myself, it's not
necessary to run .login--all setup is done in .cshrc.

A valid C-shell script to run IDL would be

#!/bin/csh
idl << done
print,'Hello world'
done

I do have a cron job which uses IDL in just this fashion, which nightly creates
some images for a web page. As somebody has already pointed out before me, the
way to do this in a cron job is to use the Z buffer.

William Thompson
[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: Wed Oct 08 16:07:55 PDT 2025

Total time taken to generate the page: 0.00425 seconds