Re: deleting mail entries
From: Mikey (sp00fd_at_yahoo.com)
Date: 12/29/03
- Next message: Joe Halpin: "comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- Previous message: Mikey: "Re: sed: backreference in substitution does not work as expected"
- In reply to: srini: "deleting mail entries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Dec 2003 11:22:16 -0800
seenu_2000@yahoo.com (srini) wrote in message news:<ceccc756.0312290118.c9e70f1@posting.google.com>...
> Hi all
>
> I am running an oracle PL/SQL procedure as a cron job every five
> minutes. The success or failure of this job is notified to me via mail
> . I want to delete this mail periodically. I found the log fail in the
> /var/mail directory named as oracle with the owner as "oracle" and
> group as "mail".
>
> Is it safe to do a "cat /dev/null > oracle" ?
>
As long as you're sure you're in /var/mail :O)
In general, I'd say sure, although there's the usual safe programming
caveats. You need to know that it's *possible* that you could delete
a new mail that *just* came in as well. If each mail is really
important to you, I wouldn't do it this way. If it's more
informational, it's probably ok.
- Next message: Joe Halpin: "comp.unix.shell FAQ - Answers to Frequently Asked Questions"
- Previous message: Mikey: "Re: sed: backreference in substitution does not work as expected"
- In reply to: srini: "deleting mail entries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]