On Thu, Dec 10, 2009 at 4:42 PM, Kenneth Gonsalves
<[email protected]>wrote:

>
> cd /var/lib/mod_tile/default
> rm -rf *
>
> The problem with above is if the directory /var/lib/mod_tile/default does
not exist (let us say someone deletes it), then rm -rf will happen on the
current working directory of cron.

some modification

if [ -d /var/lib/mod_tile/default ] ; then
   cd /var/lib/mod_tile/default
   rm -f * # in case you will not have sub directories
fi




-- 
Regards Manvendra - http://www.indimail.org
_______________________________________________
To unsubscribe, email [email protected] with 
&quot;unsubscribe &lt;password&gt; &lt;address&gt;&quot;
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to