...
The command should be written in such a way that the output is written to %ECF_JOB%.stat, and if the script determines that the job is not active, if should abort the task in ecflow
This will allow the output of status command to be shown by the --file command on the command line, and automatically via the job status tab in ecflow_ui
...