Comment 3 for bug 664783

Revision history for this message
Michele (mikelito) wrote :

Sorry ,but the fix you had just submitted does not work on my system (1.0.2 @ Maverick) either.
I might be wrong, but grep is just not able to catch a pattern across multiple lines.

I am currently using
os.system( "crontab -l | sed -e '/%s/,+1d' | crontab -" % system_entry_message )
which does the job just fine.

Clearly it has the problem that it would remove the line following system_entry_message regardless of its content, which is maybe bad.
I'll play a bit with sed to see if I can find something completely equivalent to grep but more robust.

Thanks for looking into this!