[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Does anyone understand terminal job control?



2009/2/8 Daniel Burrows <dburrows@debian.org>:
>  Hello list,
>
>  I've been banging my head on this one for a while.
>
>  I have a need to write some code that can manage job control on a
> terminal.  More specifically, I need to run a single process and stuff
> it into the background at will, so that it gets suspended when it tries
> to read from the terminal.  So, there's a "controller" process and
> a "subprocess" process.
>
>     controller  ----------> subprocess
>                   manages

You cant send the equivalent of ^z then fg to resume?
AFAIK the process will be suspended until you type bg to run the
process in the background or fg to bring it back into the foreground.

Hope this helps you.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


Reply to: