From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dermot Paikkos Newsgroups: gmane.os.tru64.managers Subject: (SUMMARY) cron output redirection Date: Tue, 22 Jul 2003 14:31:12 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F1D4AB0.23067.64D72E8@localhost> Reply-To: dermot@sciencephoto.com 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 1058880428 16612 80.91.224.249 (22 Jul 2003 13:27:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2003 13:27:08 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jul 22 15:27:06 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 19exAU-0004JL-00 for ; Tue, 22 Jul 2003 15:27:02 +0200 Original-Received: (qmail 7458 invoked by uid 5); 22 Jul 2003 13:28:04 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7449 invoked by uid 49493); 22 Jul 2003 13:28:04 -0000 Original-Received: from dermot@sciencephoto.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.0/5.0):. Processed in 0.43162 secs); 22 Jul 2003 13:28:04 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Jul 2003 13:28:03 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIF00ICIHEQ77@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 22 Jul 2003 09:28:02 -0400 (EDT) Original-Received: from helios.sciencephoto.co.uk (helios.sciencephoto.co.uk [194.200.237.129]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIF00A8CHEGYH@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 22 Jul 2003 09:27:53 -0400 (EDT) Original-Received: from [194.200.237.140] (helo=dione) by helios.sciencephoto.co.uk with esmtp (Exim 3.16 #3) id 19exE6-0005V8-00 for tru64-unix-managers@ornl.gov; Tue, 22 Jul 2003 14:30:46 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Pegasus Mail for Windows (v4.02a) Content-description: Mail message body Priority: normal Xref: main.gmane.org gmane.os.tru64.managers:4904 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4904 I thought i'd simmarise quickly as the number of replies is getting overwhelling :-). I mis-read UNIX Power tools book. I am missing a > before the file. So chown -R images /images/hires/*.jpg > /dev/null 2>&1 works and chown -R images /images/hires/*.jpg /dev/null 2>&1 is missing a ">" before the file. Thanx to massimo,paul sand, paul lamadeleine, robert binkerly, martin adolfsson, lindsay wakeman, chris ruhnke and galen johnson. ======= Orginal message == Hi Managers, TRU64 5.1 I have tried to redirect the output from cron to /dev/null for a couple of jobs that run frequently during the day. I can't seem to get it to work and I am being bombarded with mails that are of no use. I have tried the following in the root crontab: chown -R images /images/hires/*.jpg >& /dev/null chown -R images /images/hires/*.jpg /dev/null 2>&1 Neither have worked. I am still getting the following message when there is no file to chown. Is there some way to avoid this? Thanx. Dp. chown: /images/hires/*.jpg: No such file or directory ************************************************* Cron: The previous message is the standard output and standard error of the following crontab command: chown -R images /usr2/images/dump_hires/*.jpg /dev/null 2>&1 ------- End of forwarded message ------- ~~ Dermot Paikkos * dermot@sciencephoto.com Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668