Fwd: wrapit and system

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 14 2010 - 12:10:11 MDT

>
> I tried
> system("mv file1 file2")
> as a simple example and it worked.
>
>
>

>
> On Apr 14, 2010, at 12:56 PM, Guangshan Chen wrote:
>
>>
>> one possibility is to put the path of "mv".
>> you can use "which command" to check.
>>
>> guangshan
>>
>> On Apr 14, 2010, at 12:53 PM, Michael Notaro wrote:
>>
>>> In my NCL script, I use wrapit inside a do loop.
>>> The fortran code writes to a bunch of *.out files.
>>> Once it's done, I use the system command to
>>> move the *.out files somewhere else.
>>>
>>> But the files never get moved and no error is produced.
>>> What am I missing here?
>>>
>>>
>>> do ipt=0,Npts-1
>>> OFFLINELPJ::lpj(Nyrs,Nmns,Tyrs,lat(ipt),lon(ipt),soilcode
>>> (ipt),inco2(:),ndtooned(tmp_mn(ipt,:,:)),ndtooned(pre_mn
>>> (ipt,:,:)),ndtooned(cld_mn(ipt,:,:)),ndtooned(wet_mn(ipt,:,:)))
>>> end do
>>>
>>> system("mv /data/notaro/lpj_wicci_"+case+"/OUTPUT/*.out /data/
>>> notaro/
>>> lpj_wicci_"+case+"/"+models(imod)+"/realiz"+(iset+1)+"/OUTPUT/")
>>>
>>>
>>>
>>> Michael
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 14 12:04:56 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 16 2010 - 16:21:29 MDT