Changing Directory Within NCL Script

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Thu, 2 Jul 2009 18:11:12 -0400


I had wanted to change the current working
directory within my NCL script. I had
tried doing system("cd NewDir"), which
did not work. Testing with
system("cd NewDir; ls") confirmed that
the new directory was changed to within
the subshell of the system() command, but
the current dir of the parent shell stayed
the same.

In the talk archives I had seen responses
to the same question which also suggested
using system("cd NewDir"). Does this
really work for someone ?

Thanks, Bruce

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Thu Jul 02 2009 - 16:11:12 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 07 2009 - 11:13:18 MDT