Running collect in crontab

From: Brown, Tim <TBrown_at_amherst1.com>
Date: Mon, 05 May 2003 13:43:00 -0400

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
Received on Mon May 05 2003 - 17:43:52 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT