in reply to Re^2: How to know if a perl script is put in the background
in thread How to know if a perl script is put in the background

... fills my OS X terminal, as it does on Solaris and OpenBSD.

Not here... (Linux / bash with default settings) — But I suppose this discussion is getting off-topic with respect to the original question.

Update: Here's the respective paragraph from bash's man page:

JOB CONTROL
(...) Only foreground processes are allowed to read from or write to the terminal. Background processes which attempt to read from (write to) the terminal are sent a SIGTTIN (SIGTTOU) signal by the terminal driver, which, unless caught, suspends the process.

Replies are listed 'Best First'.
Re^4: How to know if a perl script is put in the background [OT]
by kyle (Abbot) on Nov 18, 2008 at 18:33 UTC

    So this really is controlled by stty, specifically the [-]tostop option. On my system (which doesn't stop background jobs that try to output), it's off ("-tostop"). I'm guessing that on your system it's on. Try:

    stty -a

    ...and see what it is.

      ... that's exactly it — Thanks for clearing this up.

        Yes, thank you very much.