I want to reboot my router daily at 7 AM.
I write a schedule and It was working fine:
Code: Select all
/system scheduler
add interval=1d name=daily-reboot on-event="/system reboot" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=feb/01/2020 start-time=07:00:00
I try to run the command and It asking me for confirming the action by pressing y.
Code: Select all
/system reboot
Reboot, yes? [y/N]:
How can I force reboot or pipe "y" to the command in my schedule?
I want something like
Code: Select all
/system reboot --force
Code: Select all
echo y | /system reboot