[Thread Prev][Thread Next][Index]

Re: Changing directories




Hi David,

> I have a basic ferret question: How do I change directories from within
> a ferret session in order to load different data sets? I understand that
> I could let ferret know where to look for data through the FER_DATA env
> variable but is there a quick 'cd' type command?

You can use the ferret command "spawn" to issue any UNIX command from
within a ferret session. I'm not sure that doing, say, "spawn cd ../uff"
would have the desired effect, but one thing that would is to use the
"Faddpath" script that comes with ferret (hopefully, your system is
configured properly such that that script is in your path). Then you can
say:

yes? spawn Faddpath ../uff/data/

Or you know, whatever your directory is called.

The Ferret 4.4 manual says the following about Spawn:
---------------------------------------
 29 SPAWN 

Executes a command line (Unix shell) command from within Ferret. 

yes? SPAWN unix_shell_command

Example: 
yes? SPAWN rm -f file.dat

Also, "SPAWN shell_name" allows the user to fork into an interactive
shell. For example: 
yes? SPAWN csh
enters the user into a c-shell. Use EXIT to return to Ferret. 
---------------------------------------

I hope that helps.

Emilio Mayorga
_________________________________________________________________
University of Washington	
School of Oceanography			emiliom@u.washington.edu
Box 357940				ph. (206) 543-5334
Seattle, WA  98195-7940	  USA		FAX (206) 685-3351
http://boto.ocean.washington.edu/staff_pages/emilio/
On Wed, 11 Jun 1997, David Oxilia wrote:

> Hi,
> 
> I have a basic ferret question: How do I change directories from within
> a ferret session in order to load different data sets? I understand that 
> I could let ferret know where to look for data through the FER_DATA env 
> variable but is there a quick 'cd' type command?
> 
> Thanks, David.
> 
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> David Oxilia				Tel: (541) 737-2368
> COAS-Oregon State University		Fax: (541) 737-2064
> Ocean Admin. Bldg. 104			WWW: http://www.oce.orst.edu
> Corvallis, OR 97331-5503		Email: oxilia@hejira.oce.orst.edu
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> 



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement