bug-bash
[Top][All Lists]
Advanced

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

Re: bash: no job control in this shell


From: Chet Ramey
Subject: Re: bash: no job control in this shell
Date: Thu, 28 Jun 2007 18:42:17 -0400
User-agent: Thunderbird 2.0.0.4 (Macintosh/20070604)

JimK wrote:
> I have written a java applet to interact with bash in the background to let
> the applet user interact just like they were using bash itself.
> 
> But when the initial output from bash comes to my applet, it says "bash: no
> job control in this shell". 

In general, this happens when bash thinks it's interactive but can't
obtain a handle to the controlling terminal that allows it to manipulate
the controlling terminal's process group.  Since that's all job control
really is -- switching the terminal's process group between processes --
bash turns off job control if it's not available.

Other programs that attempt to put the terminal into "raw" mode usually
do it by trying to open "/dev/tty" (always the controlling terminal) and
change its attributes.  If that fails, they fall back to line-at-a-time
mode.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]