On Fri, Oct 25, 2002 at 01:53:17PM -0700, Matt Simonsen wrote: > On Fri, 2002-10-25 at 19:44, Scot wrote: > > Anybody figured out a good regular expression to match all > > 2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * * > > Wouldn't \S+\s2\s\S\s\S\s\S.* or something like that work? In other > words, just search for 5 fields where the second one was "2" > > Now this may not help you if you have something like */3 and it happens > to run at 2:00 am, but this doesn't seem to be what you're looking for.
http://search.cpan.org/author/AMS/Set-Crontab-1.00/Crontab.pm may be helpful in more complicated cases. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
