Package: cron Version: 3.0pl1-34 Running "crontab -l" has a bad habit of displaying header information that is not actually part of the crontab.
For example: $ crontab -l -u gnats # DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Mon Jul 29 14:07:28 1996) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) 5,15,25,35,45,55 * * * * /usr/lib/gnats/queue-pr --run Those first three lines do not appear when using "crontab -e" and they cause problems if trying to modify the crontab using a script since reading the crontab via "crontab -l", modifying it, and the sending the changed data to "crontab" will end up with a duplicate header stored. The output of "crontab -l" would then be something like: $ crontab -l | <presumably some edit script here> | crontab; crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Mon Jul 29 14:07:28 1996) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) # DO NOT EDIT THIS FILE - edit the master and reinstall. # (- installed on Mon Jul 29 14:07:28 1996) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) 5,15,25,35,45,55 * * * * /usr/lib/gnats/queue-pr --run Would you mind stripping these first three lines from the "crontab -l" output? Brian ( [EMAIL PROTECTED] ) ------------------------------------------------------------------------------- the difference between theory and practice is less in theory than in practice