Watch output of a running cronjob process
Sometimes you might want to hook into the output (stdout or stderr) of a running process, eg. of some periodically triggered script.
-
Find out the process id:
ps ax | grep ‘processname’
-
Watch the I/O stream (replace
PROCID
with the process id from (1) andNUM
with the desired I …