Question Task scheduler - script output

Currently reading
Question Task scheduler - script output

9
1
NAS
DS918+
Does anyone know how to get the output of a script into the task scheduler 'Run Result' window ?

eg if I run a simple script that echoes 'Hello' in the terminal, I presume this is stdout ?

Yet when run in Task Scheduler, both the 'Script:' and 'Standard output/error:' boxes are empty...
 
Never looked. I've scripted a redirect of command output to a file in a shared folder, but then that's what I wanted ... the recent tail of the the message log to a place where I could read it without using SSH.

Now looked and it's under Action -> View Results. Nope don't see anything here when I run my script and Help is no help.
 
Yes I suppose so

Unrelated, but does anyone know how to trigger a script on power on ?

I don't see an option other than a set time each day, but if the NAS is never turned off, then it will spawn a new script process each day...
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Replies
1
Views
4,405
That is exactly what I do. Probably an old habit from admin days.
Replies
3
Views
4,555
A simple trick to adjust the scheduled run time of a script is to use the unix sleep command as the top of...
Replies
0
Views
3,155
Hello, I’m looking for someone able to write script for Syno DSM having good knowledge of DSM systems...
Replies
0
Views
821
Jeyare, You bring up several good points, plus you introduce BTRFS in to the mix. I will tell you honestly...
Replies
10
Views
4,944

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top