You can schedule this script in Task Scheduler to run on a schedule or at boot-up.
You can also setup a scheduled task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
- Go to Control Panel > Task Scheduler > click Create > and select Triggered Task.
- Select User-defined script.
- Enter a task name.
- Select root as the user (The script needs to run as root).
- Select Boot-up as the event that triggers the task.
- Leave Enable ticked.
- Click Task Settings.
- Optionally you can tick Send run details by email and Send run details only when the script terminates abnormally then enter your email address.
- If Send run details only when the script terminates abnormally is ticked DSM will only send you an email when this script deletes coredump files.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type: /volume1/scripts/syno_clean_coredump.sh
- Click OK to save the settings.
- Go to Control Panel > Task Scheduler > click Create > and select Scheduled Task.
- Select User-defined script.
- Enter a task name.
- Select root as the user (The script needs to run as root).
- Leave Enable ticked.
- Click Schedule and set your schedule.
- Click Task Settings.
- Optionally you can tick Send run details by email and Send run details only when the script terminates abnormally then enter your email address.
- If Send run details only when the script terminates abnormally is ticked DSM will only send you an email when this script deletes coredump files.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type: /volume1/scripts/syno_clean_coredump.sh
- Click OK to save the settings.