http://ferret.pmel.noaa.gov/Ferret/Documentation/Release_Notes/v553.html
New command-line option -script. Start Ferret with
> ferret -script scriptname.jnl [arg1] [arg2] ...
Ferret starts,
the script runs, and Ferret exits to the
command line.
If Ferret encounters an error, it will
issue any error
messages and exit to the command line.
The switch also
sets the -nojnl, -server, and -noverify
switches. It
also supresses the banner lines. So that
the command
line reader can read and process the script
arguments, this
option must be specified last, after any
other command-line
switches (e.g. -gif).
Ansley Mnake
Tony Jolibois wrote:
Hi ferreters, I want to run ferret with input redirection to pass a script, but with arguments. Is it possible ?
Example :
Doesn't work :
[mercator@blade1 animation]$ ferret < sc.jnl temperature
Usage: ferret [-memsize Mwords] [-batch [outfile]] [-server] [-secure] [-gif] [-gui] [-unmapped] [-help] [-nojnl]
-memsize: specify the memory cache size in megawords (default 3.2)
-batch: output directly to metafile "outfile" w/out X windows
-unmapped: use invisible output windows (superceded by -batch)
-gif: output to GIF file w/o X windows only w/ FRAME command
-gui: to start Ferret in point and click mode (not available on all platforms)
-secure: run securely -- don't allow system commands
-server: run in server mode -- don't stop on message commands
-help: obtain this listing
-nojnl: on startup don't open a journal file (can be turned on later with SET MODE JOURNALWork :
[mercator@blade1 animation]$ ferret -gif
NOAA/PMEL TMAP
FERRET v5.50
Linux 2.4.3-12smp - 01/15/03
20-Oct-03 12:03yes? go sc temperature
set data mercator_psy2v1_mersea_grid1o8_med_best_estimate.nc
show grid $1
!-> show grid temperature
GRID GKW1
name axis # pts start end
LONGITUDE LONGITUDE 341mr 6W(-6) 36.5E
LATITUDE LATITUDE 129 r 30N 46N
DEPTH DEPTH (m) 8 i- 5 2000
TIME TIME 130 r 01-JUN-2003 00:00 08-OCT-2003 00:00
exit
yes?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tony Jolibois
CLS, Direction Océanographie Spatiale
Tel: (+33) (0) 561 393 797
Internet: http://www.cls.fr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Ansley Manke Pacific Marine Environmental Laboratory Seattle
WA