SUMMARY: background processes are suspended

From: Michael Hustler <michael.hustler_at_altus-solutions.com>
Date: Wed, 29 Mar 2000 08:11:10 -0800

Thank you all for your responses.

PROBLEM:
Frequently, a process that I am running in the background becomes
suspended.

SOLUTION:
        The reason this happens is because the process wants to read
from stdin or write to stdout/err but it can't.

        When this happens you can manually foreground it using fg and
then background it again (^Z). {However, in my case ^Z becomes ignored
the second time around}

        To avoid this altogether, stop the process from being able to
read/write by redirection (eg. null or some log file) For example,
using ksh:
                the_cmd </dev/null >/dev/null 2&>1 &



thanks again,
mike.
Received on Wed Mar 29 2000 - 16:11:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT