From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ldg@ulysium.net Newsgroups: gmane.os.tru64.managers Subject: followup: suppressing cron output Date: Fri, 11 Jul 2003 12:12:56 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1057939977 19922 80.91.224.249 (11 Jul 2003 16:12:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2003 16:12:57 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jul 11 18:12:53 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19b0Vw-0005Ak-00 for ; Fri, 11 Jul 2003 18:12:52 +0200 Original-Received: (qmail 32302 invoked by uid 5); 11 Jul 2003 16:13:33 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 32293 invoked by uid 49493); 11 Jul 2003 16:13:33 -0000 Original-Received: from ldg@ulysium.net by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-0.2/5.0):. Processed in 0.421878 secs); 11 Jul 2003 16:13:33 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 11 Jul 2003 16:13:33 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHV0058TBQKJY@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 11 Jul 2003 12:13:32 -0400 (EDT) Original-Received: from matrix.ao.net (mail-gw2.ao.net [205.244.242.28]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HHV00B3IBQCNE@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 11 Jul 2003 12:13:25 -0400 (EDT) Original-Received: from mail.ao.net (mail.ao.net [205.244.242.23]) by matrix.ao.net (8.12.9/8.12.9/Debian-1) with ESMTP id h6BGDJV9018307 for ; Fri, 11 Jul 2003 12:13:19 -0400 Original-Received: from [63.79.143.116] (port115.dyn.ao.net [63.79.143.116]) by mail.ao.net (8.12.9/8.12.9/Debian-1) with ESMTP id h6BGDFMn009004 for ; Fri, 11 Jul 2003 12:13:17 -0400 In-reply-to: Original-To: Tru64 Unix managers User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 Xref: main.gmane.org gmane.os.tru64.managers:4827 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4827 I little follow up on this issue, which I haven't yet resolved: One suggestion was that cron may have a limit in the number of arguments in the command line, so I looked a little closer at the dirclean doc and found I could shrink the effective length a bit by combining a few things like this: /usr/sbin/dirclean -t +2 -o -k scb /tmp/ >/dev/null 2>&1 I also tried shrinking it further by using only one redirection, trying with 1 and then 2, but neither stopped the email from coming in and the same content was in the email, so it seems the redirection may not be working at all. One other suggestion was to use a wrapper script, but I'd rather avoid that if I can. After all there are other such commands in the crontab and they're not doing this, and I don't see why I should wrap just one of them.. The /tmp location on that system is on its own advfs domain, and has the quota.xxx files, so dirclean chokes on those every time, which is what is reported by email. I would like to figure out a way to have dirclean avoid touching those files, but I don't think it can be configured that way. So how do I make cron behave in it's expected way? My original positing is below: > I've tried to suppress the output from a couple of cron jobs, for example > like this one: > > 20 4 * * * /usr/sbin/dirclean -t +2 -o -k s c b /tmp/ >/dev/null 2>&1 > > and that still doesn't stop it. > This is tru64 5.1b and that used to work on older versions, what's changed > and how can I do this right? -- Didier Godefroy mailto:dg@ulysium.net