Hi there
I'm wanting to set a scheduled reboot (not a power down , an actual reboot) , found the scheduler no problem but its asking for a custom command , would I be right in assuming its
Sudo Reboot
Or isn't that the reboot command for this NAS ?
Many thanks in advance
F4-223 Reboot Command Line ?
Re: F4-223 Reboot Command Line ?
Just enter reboot directly.
Re: F4-223 Reboot Command Line ?
It doesn't have reboot in the scheduled tasks or am I missing something ?
in 'Create Scheduled Tasks' there is 'triggered scheduled tasks' and in there is just the options to shut down or start up , so I'd assumed it was 'custom scheduled task' which is asking for a CLI command ?
in 'Create Scheduled Tasks' there is 'triggered scheduled tasks' and in there is just the options to shut down or start up , so I'd assumed it was 'custom scheduled task' which is asking for a CLI command ?
Re: F4-223 Reboot Command Line ?
You need to use "Customize" and enter a standard command line command.
I think what TMSupport are saying is that you don't need the 'sudo'. Not clear what version of TOS you are running but in 5+ sudo does not work (because root user in prohibited).
I think what TMSupport are saying is that you don't need the 'sudo'. Not clear what version of TOS you are running but in 5+ sudo does not work (because root user in prohibited).
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
Re: F4-223 Reboot Command Line ?
aahhhhh sorry ! , I just assumed it was standard linux commands , so in the 'customize' section the custom command is literally just 'reboot' ? , ie , thats it and save ?
Re: F4-223 Reboot Command Line ?
I guess. As long as you are logged in as an admin user and have permissions. This is one custom script I use to find and delete old files/folders for my surveillance system:
and I set it to email the results on completion.
Code: Select all
find /Volume2/IPCAM/ -name P*.jpg -mtime +6 -print -delete
find /Volume2/IPCAM/ -name A*.jpg -mtime +120 -print -delete
find /Volume2/IPCAM/ -type d -empty -print -delete
find /Volume2/DVR/ -name *.storage -mtime +120 -print -delete
find /Volume2/DVR/ -type d -empty -print -delete
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid. (Latest Update 11/04/24)