Re: bash: no job control in this shell

2007-07-11 Thread JimK
Chet Ramey wrote: > > >>You might want to look at examples/rlfe in the readline distribution. It >>does the same sort of front-end pty manipulation you;re interested in. > > Great tip, in there I found they do a setsid() and ioctl(...) and that > fixed the nojob control warning message AND l

Re: bash: no job control in this shell

2007-07-10 Thread JimK
Chet Ramey wrote: > > 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

Re: bash: no job control in this shell

2007-07-09 Thread JimK
Bob Proulx wrote: > > >>Internally bash will use the libc isatty(3) routine to determine if >>the input/output files are tty devices. In the shell these are >>available in the 'test' operator as the '-t' file operator. > >> $ test -t 0 && echo input is a tty >> $ test -t 1 && echo output is

Re: bash: no job control in this shell

2007-06-29 Thread JimK
Bob Proulx wrote: > > >>Does this java applet set up a master-slave pty for bash's input and >>output? This is what the 'expect' program and similar usually do. > > Yep, I drop down into C to use openpty() to set up the master/slave and > pass the > file IDs back up into java.I Use input/out

bash: no job control in this shell

2007-06-28 Thread JimK
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". Which initially I didn't think really mattered, but