[NTLUG:Discuss] protecting /dev/null from miswritten redirects.
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 8 13:09:19 CST 2004
Slightly off-topic, but...
On Thu, Jan 08, 2004 at 12:49:06PM -0600, Richard Geoffrion wrote:
>
> whereby I issue the following command instead:
>
> echo '40 * * * * /home/vpopmail/bin/clearopensmtp \
> 2>&1> /dev/null' > /var/spool/cron/crontabs/vpopmail
You really should use crontab(1) to modify the crontab rather than overwriting
the file directly:
echo '40 * * * * /home/vpopmail/bin/clearopensmtp 2>&1 >/dev/null' |
crontab -u vpopmail -
Pm
--
Patrick R. Michaud, RHCE #808002519807115
Web: http://www.pmichaud.com
Email: pmichaud at pobox.com
More information about the Discuss
mailing list