From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brown, Tim" Newsgroups: gmane.os.tru64.managers Subject: Running collect in crontab Date: Mon, 05 May 2003 13:43:00 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1052157127 29407 80.91.224.249 (5 May 2003 17:52:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 17:52:07 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon May 05 19:52:03 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19Cjya-0006iQ-00 for ; Mon, 05 May 2003 19:42:08 +0200 Original-Received: (qmail 29278 invoked by uid 5); 5 May 2003 17:43:21 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29269 invoked by uid 49493); 5 May 2003 17:43:21 -0000 Original-Received: from TBrown@amherst1.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.381577 secs); 05 May 2003 17:43:21 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 5 May 2003 17:43:21 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEF0067RD86TO@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 05 May 2003 13:43:20 -0400 (EDT) Original-Received: from qacom.amherst1.com ([12.105.87.132]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HEF002BFD81AK@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 05 May 2003 13:43:13 -0400 (EDT) Original-Received: from amh-exc1.amherst1.com by qacom.amherst1.com via smtpd (for emroute2.cind.ornl.gov [160.91.86.17]) with SMTP; Mon, 05 May 2003 13:44:37 -0400 Original-Received: by AMH-EXC1.amherst1.com with Internet Mail Service (5.5.2653.19) id ; Mon, 05 May 2003 13:43:01 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) Xref: main.gmane.org gmane.os.tru64.managers:4129 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4129 I'm trying to run the collect utility in crontab everyday and have the output file reflect the current date and time. I'm using the following command; 0 8 * * * /usr/sbin/collect -s cf -R 1h -f /usr/users/`date +%m-%d-%Y:%I:%M`_node This should run collect for 1 hour and then write the file with the current date and node, i.e. 05-05-2003:12:30_node.cgz This works fine in command line mode but fails in crontab with this error; error opening /dev/tty I believe the process wants to write to stdout but fails when running in the background. What do I need to do to have this command execute in crontab? Thanks, Tim