Re: how to set a standard input to a variable

From: <Maurice.McHugh_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 31 2010 - 06:48:42 MDT

Why not use command line arguments to pass variable info to NCL?

See some examples at: http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclCLO.shtml

----- Original Message -----
From: Xie Xin <xiexinyls@gmail.com>
Date: Tuesday, March 30, 2010 11:08 pm
Subject: Re: how to set a standard input to a variable
To: chen <fjfzcgh@gmail.com>, ncl-talk@ucar.edu

> hi,
>
> I guess system func will call a bash subprocess each time. When it
> finishes, it does not store your "name" in the memory again. So you
> can not get your name with another call to system.
>
> Xin Xie
>
> $B:_(B 2010$BG/(B3$B7n(B31$BF|(B $B>e8a(B8:39$B!$(Bchen <fjfzcgh@gmail.com> $B<LF;!'(B
> > Dear Sir,
> > I want to get a standard input from keyboard and then set it
> to one
> > new variable via ncl. The snippet is as follows,
> >
> > system("read name")
> > var=systemfunc("echo ${name}")
> > print(var)
> >
> >
> > But the result just shows a missing value. Why does not it work?
> Or, any
> > alternative method can solve it? Thanks in advance!
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> >
> >
> >
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 31 06:48:49 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2010 - 11:31:45 MDT