Hello,
For some reason, the below script is generating two emails sent several seconds apart when run by the scheduler. This only happens when when the scheduler runs the script. If I run it from the shell or Winbox, I only get one email.
This is in RouterOS 2.9.14. Any suggestions regarding why this is happening would be appreciated.
[jlupolt@Foo] system scheduler> /system script
[jlupolt@Foo] system script> print
0 name="backup_and_email" owner="jlupolt" policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=may/03/2006 06:00:00 run-count=18 source=
/system backup save name=Foo
/tool e-mail send to="foo@foo.net" subject=([/system identity get name] . " " . [/system clock get date] . " Foo") file=Foo.backup
[jlupolt@Foo] system script> /system scheduler
[jlupolt@Foo] system scheduler> print
Flags: X - disabled
NAME ON-EVENT START-DATE START-TIME INTERVAL RUN-COUNT
0 backup_email backup_and_email may/02/2006 06:00:00 1d 2
Best regards,
James