How can I capture the stdout from a process that is ALREADY running

后端 未结 5 907
深忆病人
深忆病人 2021-01-30 22:21

I have a running cron job that will be going for a while and I\'d like to view its stdout. I don\'t know how important the fact that the process was started by cron is, but I f

5条回答
  •  再見小時候
    2021-01-30 22:47

    I think the fact you started with cron could save you. Under linux any standard output of a cron job is mailed to the unix mail account of the user who owns the job. Not sure about OSX though. Unfortunately you will have to wait for the the job to finish before the mail is sent and you can view the output.

提交回复
热议问题