| Date: Fri, 09 Jan 2004 15:48:55 +0000
| From: P at draigBrady.com
| Ciaran Johnston wrote:
| > In solaris, if I exit the shell [ after starting a backgrounded
| > process whose stdout is the terminal ], the background process
| > keeps running, but loses it's tty
| Are you sure it keeps running? Where does the output go to?
| The behaviour under linux for background processes is to
| be suspended if they output.
on Linux, using bash(1) as the shell:
$ (sleep 3; echo FOO) &
[ wait c.3 seconds ]
you are correct, however, if you mean _input_.
requesting input (i.e,, reading) yer controlling terminal
when you are in the background does cause the process to
be suspended on _any_ modern *ix, including both Solaris
I concur with Pádraig's suggestion to consider nohup(1)
or similar commands.
«How many surrealists does it take to | Brian Foster Montpellier,
change a lightbulb? Three. One calms | blf at utvinternet.ie France
the warthog, and two fill the bathtub | Stop E$$o (ExxonMobile)!
with brightly-colored machine tools.» | http://www.stopesso.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!