Re: puzzled with using getenv for getting shell environment [SEC=UNCLASSIFIED]

From: Griffith Young <G.Young_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 01 2011 - 18:10:48 MDT

Hello Erik,
        You are not exporting the SHELL variable to the ENVIRONMENT.

        for fil in $FILI
                export file_seen_in_ncl=$fil
                ncl test.ncl
        file_in = getenv("file_seen_in_ncl")

        If you want all the files in one process, you can also try (assuming $FILI has been exported):

        in_files = str_split(getenv("FILI"), " ")


Message: 1
Date: Tue, 1 Nov 2011 12:45:33 -0400
From: Erik N <>
Subject: puzzled with using getenv for getting shell
        environment variable
Content-Type: text/plain; charset=UTF-8

I'm having difficulty with passing a shell environment variable to the ncl script with the getenv command.
The environment variable is "fil."
The shell script works fine.
But when I look at the ncl output using the print statement, the string is missing. It is supposed to say "ncep2_grid_Experiment_.... "
Is this expected?


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Nov 1 18:10:56 2011

This archive was generated by hypermail 2.1.8 : Fri Nov 04 2011 - 08:43:41 MDT