Code: Select all
os.execute('some-command > /data/some-command.output.json &'
Tried the same technique in dzVents, using a timer-triggered
Code: Select all
dz.utils.osExecute('some-command > /data/output.json 2> /data/error.json &')
Code: Select all
# ps -ef | grep fronius | head
root 304 27346 0 04:11 ? 00:00:00 [fetch-fronius-d] <defunct>
root 312 27346 0 Jan16 ? 00:00:00 [fetch-fronius-d] <defunct>
root 317 27346 0 Jan16 ? 00:00:00 [fetch-fronius-d] <defunct>
.. (several 1000-s of processes...)
Known problem? Can I call the collection script in some other way to avoid the defunct processes?