trying to filter out script jobs with
Code: Select all
/system/script/job/print where script!=""
Expected (ok):
Code: Select all
[admin@df.router] > :foreach "i" in=([/system script job print as-value detail]) do={ :put [:typeof ($"i"->"script")] }
nothing
Expected (ok):
Code: Select all
[admin@df.router] > :foreach "i" in=([/system script job print as-value detail]) do={ :put ($"i"->"script") }
Code: Select all
[admin@df.router] > :local "nothing"; :put [typeof $"nothing"]; /system/script/job/print where script!=$"nothing"
NOT EXPECTED (!!!):
Columns: OWNER, STARTED
# OWNER STARTED
0 admin may/06/2023 08:06:38
1 admin may/06/2023 08:22:44