Hi,
I am trying to write job for crontab but when I do any changes in entry below I does not remove previous one - just adds new.
cron_entry "display_on",
ensure => "present",
command => $display_on_command,
minute => "0",
hour => "9",
month => "*",
day_of_week => "1-5",
day_of_month => "*",
user => "pi",
on_change => sub {
say "Cron job display_on added"; };
My question is:
"Is it possible to overwrite existing cron entry with new ?"
Thank you in advance with any suggestions.
Kind regards,
Tom