Hi guys,
how can I execute a script from a script without having two scripts in the job list - the caller and the called?
When I cancel the caller, the called script is also cancelled automatically.
I assume this depends on the scope.
I would like to have a script that calls an other script and the caller is then no longer active, means visible in the Job list.
Caller: checkIfJobIsRunning
check if job collectOnlineTime-PS4LS is running, if not, start it.
:local scriptname "collectOnlineTime-PS4LS";
:if ([:len [/system script job find script=$"scriptname"]] = 0) do={
:log info "$scriptname NOT Running - restart script again";
/system script run $scriptname;
}
Thanks for your help!
