The exit code is 0, so it seems the only way to detect a failure is to
grep the output for "error." Is it possible to check for some
arbitrary string in stdout and stderr and tell rundeck that this
indicates a failed job?
I'm having a similar issue with commands wrapped in schtasks like this
(I do this for an app that has to interact with a currently logged in
user):
schtasks /create /tn task /tr C:\\Windows\\system32\\notepad.exe /sc
once /st 00:00:00 & schtasks /run /tn task & schtasks /delete /tn task
/f
Even if notepad.exe fails to run I get a 0 exit code because the
schtasks command succeeded...
> --
> You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/rundeck-discuss/TZ8kuOhBO80/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to
rundeck-discu...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
> --
> You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/rundeck-discuss/TZ8kuOhBO80/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to
rundeck-discu...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "rundeck-discuss" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/rundeck-discuss/TZ8kuOhBO80/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to
>
rundeck-discu...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>