/log print file=([/system identity get name] . "Log-" . [:pick [/system clock get date] 7 11] .
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]); \
/tool e-mail send to=voorbeeld@domein.com subject=([/system identity get name] . " Log " . \
[/system clock get date]) file=([/system identity get name] . "Log-" . [:pick [/system clock get date] 7 11] . \
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".txt"); :delay 10; \
/file rem [/file find name=([/system identity get name] . "Log-" . [:pick [/system clock get date] 7 11] . \
[:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6] . ".txt")]; \
:log info ("System Log emailed at " . [/sys cl get time] . " " . [/sys cl get date])
In the past, this script worked very well.
It seems that all my scripts do not work anymore.
Has the code been changed?
Can I help someone with the correct code?
Not sure whats wrong with it, but it seems badly written.
It runs the same many times. Store time to a variable, then use it instead of getting time in same format many times.
It seems that a ** is missing for the first line.
Why use fulle syntax here: