One trick I use to zero out files is to do this:
cat /dev/null > filename

It leaves the file in place with existing permissions but sets it to 0
bytes.

--
Matthew Nuzum
www.bearfruit.org
[EMAIL PROTECTED]
 
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:cobalt-developers-
> [EMAIL PROTECTED]] On Behalf Of njd 76
> Sent: Thursday, September 19, 2002 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [cobalt-developers] /home/spool/mail
> 
> 
> In my /home/spool/mail directory i have some emails i want to clear.
What
> is
> the easiest way to do it via ssh? do i have to remove the file then
touch
> it. Or is there a better way. Any help would be great!
> 
> Thanks
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
> 
> _______________________________________________
> cobalt-developers mailing list
> [EMAIL PROTECTED]
> http://list.cobalt.com/mailman/listinfo/cobalt-developers

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Reply via email to