[Thread Prev][Thread Next][Index]

Re: [ferret_users] use date from shell

Hi -
Another idea, depending on what you want this for, is to use the symbols SESSION_DATE and SESSION_TIME  which are set when Ferret starts up, and which contain the date and time when you started the Ferret session.
yes? show symbol session*
SESSION_DATE = "20-Jan-09"
SESSION_TIME = "10:39"

yes? let date = "($session_date)"
 !-> DEFINE VARIABLE date = "20-Jan-09"
yes? let datetime =  "($session_date) ($session_time)"
 !-> DEFINE VARIABLE datetime =  "20-Jan-09 10:57"


David Wang wrote:
would this work for you?

let date = {spawn:"date +%j"}
list date

There is a section on spawn command in the manual.


On Fri, Jan 16, 2009 at 7:45 AM, Otacilio Leandro <otaciliomneto@xxxxxxxxx> wrote:
Hello all,

I was searching how can i define a variable using the date from shell like this:

let date = spawn date +%j

and it always get an error and i don't know the syntax i have to use...

Please help me


Ms. Otacilio Leandro de Menezes Neto
Grupo de Modelagem Atmosférica
Departamento de Meteorologia e Oceanografia
Fundação Cearense de Meteorologia e Recursos Hídricos
Av. Rui Barbosa 1246 - CEP 60115-221
Fortaleza, Ceará
Fone: (85) 3101-1106 / 3101-1126

life grows, death doesn't.

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement