Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Have you considered adding ps aux | grep 'bash.*<script name>' | tee -a <your log file> to your apps? This will add the pid to the log file for identification. Similarly, you can echo the output before each app output to CMD. Commented Aug 7, 2014 at 19:44
  • I should add that this will also add the process name to the log file; hence it'll give you direct relation between process log and process/app. Commented Aug 7, 2014 at 19:58