Re: String input to PRO ?? [message #5852] |
Tue, 05 March 1996 00:00 |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
Dot Carney wrote:
>
> This is a novice PV-WAVE (on UNIX) question:
>
> How do I write a procedure which will be called with a file-name
> as a parameter? I want a file demo.pro which I call in wave
> with the statement demo,file_name where file_name is an ascii
> string naming a file in my UNIX directory. For example:
>
> PRO demo,file_name
> openr,1,file_name
> ... etc ...
>
> compiled and then used, eg:
>
> wave> demo,file.1234
>
> which would open 'file.1234' in my directory. I would prefer to NOT
> do this from a C-shell script ... I'd like to do it within wave.
>
> thanx --dcarney@lerc.nasa.gov
I think you have done it!
But how do you call it? Use quotes.
An example...
wave> demo, 'file.1234'
--
Andrew F. Loughe (afl@cdc.noaa.gov)
University of Colorado, CIRES * Campus Box 449 * Boulder, CO 80309
phone: (303) 492-0707 fax: (303) 497-7013
|
|
|