Hi Dan To check the existence of a file, I use this: yes? Let /Quiet test_file = `SPAWN("test -f test2.nc 2>/dev/null ; echo $?")` yes? IF ` test_file EQ 0 ` THEN SAY File exists Bruno Bruno LEVIER MERCATOR-OCEAN Parc Technologique du Canal 8-10 rue Hermes 31520 Ramonville-Saint-Agne FRANCE Tel: + 33 5 61 39 38 51 Fax: +33 5 61 39 38 99 On 10/25/2011 09:56 AM, Yu, Hao-Cheng wrote: Dear ferret users, |