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...
 

fredbert

Moderator
NAS Support
Subscriber
4,075
1,614
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
  3. RT6600ax
Operating system
  1. macOS
Mobile operating system
  1. iOS
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.
 
9
1
NAS
DS918+
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
3,100
That is exactly what I do. Probably an old habit from admin days.
Replies
3
Views
2,336
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
2,055
Jeyare, You bring up several good points, plus you introduce BTRFS in to the mix. I will tell you honestly...
Replies
10
Views
2,472
Saves the results of the successful processing of shared folder synchronization to a DB file through the...
Replies
0
Views
1,694
I find that the lowest brightness level is bright enough for me so my schedule doesn't change: 0700 LEDs...
Replies
6
Views
1,204

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top