* Cron job to remove core files ..output error emails help
@ 2002-09-26 16:04 Martin Brodie
2002-09-26 17:41 ` Andrew Duane USG
0 siblings, 1 reply; 3+ messages in thread
From: Martin Brodie @ 2002-09-26 16:04 UTC (permalink / raw)
Ok I have a cron entry that performs the following
find / -name core ! -fstype nfs -exec rm {} \;
everytime it runs it produces a email with contents like this:
find: /proc/00000 : No such file or directory
find: /proc/679022 : No such file or directory
*************************************************
Cron: The previous message is the standard output
and standard error of the following crontab command:
find / -name core ! -fstype nfs -exec rm {} \;
Is there anyway to suppress this, in the event it does not find a core
file and/or the 'No such file...' entry.
Thanks from a newbie.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cron job to remove core files ..output error emails help
2002-09-26 16:04 Cron job to remove core files ..output error emails help Martin Brodie
@ 2002-09-26 17:41 ` Andrew Duane USG
2002-09-27 10:07 ` Martin Brodie
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Duane USG @ 2002-09-26 17:41 UTC (permalink / raw)
In article <4bb16963.0209260804.c6148d7@posting.google.com> schuderfloss@netscape.net (Martin Brodie) writes:
>Ok I have a cron entry that performs the following
>
> find / -name core ! -fstype nfs -exec rm {} \;
>
>everytime it runs it produces a email with contents like this:
>
>find: /proc/00000 : No such file or directory
>find: /proc/679022 : No such file or directory
>
>Is there anyway to suppress this, in the event it does not find a core
>file and/or the 'No such file...' entry.
Add "! -fstype procfs" or some other way to stop it from traversing
into /proc, which is a procfs file system.
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
HP/Compaq Corporation Andrew.Duane@compaq.com
110 Spit Brook Road Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH 03062-2698 (603)-884-1294
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cron job to remove core files ..output error emails help
2002-09-26 17:41 ` Andrew Duane USG
@ 2002-09-27 10:07 ` Martin Brodie
0 siblings, 0 replies; 3+ messages in thread
From: Martin Brodie @ 2002-09-27 10:07 UTC (permalink / raw)
duane@hunch.zk3.dec.com (Andrew Duane USG) wrote in message news:<bFHk9.33$bq5.529524@news.cpqcorp.net>...
> In article <4bb16963.0209260804.c6148d7@posting.google.com> schuderfloss@netscape.net (Martin Brodie) writes:
> >Ok I have a cron entry that performs the following
> >
> > find / -name core ! -fstype nfs -exec rm {} \;
> >
> >everytime it runs it produces a email with contents like this:
> >
> >find: /proc/00000 : No such file or directory
> >find: /proc/679022 : No such file or directory
> >
> >Is there anyway to suppress this, in the event it does not find a core
> >file and/or the 'No such file...' entry.
>
> Add "! -fstype procfs" or some other way to stop it from traversing
> into /proc, which is a procfs file system.
Tried the fstype addition to the command and still the same result.
Any other ideas? How can I exclude in the search path /proc ?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-27 10:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26 16:04 Cron job to remove core files ..output error emails help Martin Brodie
2002-09-26 17:41 ` Andrew Duane USG
2002-09-27 10:07 ` Martin Brodie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox