<div dir="ltr"><div>Is it possible the system(command) call is failing? Try something like this to verify:</div><div><br></div><div> print(systemfunc(command))</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 17, 2020 at 11:33 AM M P via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I have a simple test script that is not doing the right thing.</div><div><div>The output is the same for both first and second system calls</div><div>so that the directory is not changed.</div><div></div></div><div>Can you help with a solution?</div><div>Thanks,</div><div>Mark</div><div><br></div><div>begin<br><br> ncldir="./test"<br> command="cd " + ncldir<br><br> system("pwd")<br> system(command)<br> system("pwd")<br><br>end<br><br></div><div>..../mapp/ncl<br>..../mapp/ncl<br></div><div><br></div><div>(same with systemfunc)</div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>