[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4316: cron -- crontab -l prints excess header



Steve Greenland wrote:
> > Would you mind stripping these first three lines from the "crontab -l"
> > output?
> 
> Yes, because I think there is useful information there (primarily
> the second line, with the file name (usually) and date).

Could you write them to STDERR and the rest of the info to STDOUT?


> Since it's in a script anyway, why not strip it yourself:
> 
>  crontab -l |sed -e '1,/^# (Cron version/ d'
> 
> (actually "sed -e '1,3 d'" would proably be sufficient.)

I thought about this, but it requries my script to know about the
internals of crontab.  If crontab ever changed, then a problem could
arise.  I prefer to keep related functionality as together as possible.


> I'm going to close this one.

Hold on just a sec...  Let's resolve how this is going to be handled,
first.
                                             
                                          Brian
                                 ( bcwhite@verisim.com )
                                             
-------------------------------------------------------------------------------
 the difference between theory and practice is less in theory than in practice




Reply to: