[Thread Prev][Thread Next][Index]
Re: Running Ferret in batch mode
Hi Francisco,
I plot from a shell script, too. I set the a couple of
environment variable explicitly in the csh scipt from
which I call ferret. Here is what I do:
setenv FER_DIR /opt/ferret
source $FER_DIR/ferret_paths > /dev/null
Faddpath /export/home/jasedy/data/lastdata > /dev/null
Faddpath /opt/ferret/bin > /dev/null
ferret -gif < pc >& /dev/null
Good luck,
Joerg
>
> Hi ferreters
>
> I am trying to produce gif plots daily at eight in the morning. So
> I've written a shell script that daily gets the data via ftp and then
> run ferret to produce the gif files. But I always get the same error,
> the gif files are not created when I run the script via cron; but
> everything works fine if I run the script in a terminal window.
>
> The general shell script call a different script for every gif file
> (change dirs, rename data files,...) and this specific scripts contain
> the follwing line to run ferret:
>
> ferret -unmapped < humtem.jnl
>
> And the error message I get is :
>
> "The Ferret environment has not been properly set up.
> (The environment variable FER_DIR is not defined)"
>
> I add ferret paths to the environment when opening a terminal with
> the source line in .cshrc. How can I do this in batch mode?
>
> Running Ferret v4.45 in HP-UX.10.20
>
> Thanks in advance
>
> Paco
>
> --
> Francisco Pastor
> Meteorology Department
> Fundacion CEAM, Spain
> paco@ceam.es
> http://www.gva.es/ceam
> Tel: 34 96 131 82 27
> Fax: 34 96 131 81 90
> **********************************************************
> * Las opiniones aqui expresadas son exclusivas del autor *
> * La Fundacion CEAM declina cualquier responsabilidad *
> *--------------------------------------------------------*
> * Opinions expressed here are only those from the author *
> * Fundacion CEAM rejects any responsability *
> **********************************************************
--
Jörg Kaduk Tel.: 1 650 325 1521 x 416
Carnegie Institution of Washington FAX: 1 650 325 6857
Dept. of Plant Biology
260 Panama Street joerg@jasper.stanford.edu
Stanford, CA 94305-4150 http://Jasper.Stanford.EDU/joerg/
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement