background process runs and output comes to terminal in 4.3.3

background process runs and output comes to terminal in 4.3.3

Post by Norman Levi » Fri, 11 Aug 2000 04:00:00



Running an AIX using class and had students do a
ls -R / &
This should have stopped almost instantly as ls tried to write to terminal.
Instead, ls spilled its guts out.

Found that stty had terminal output stop option off. (that is, stty -tostop)
This is not the posix standard.  Has anybody else run into this (4.3.2 works properly).
Is this a bug?  Or should I check more and see if somebody decided to override a default
setting?
--
Norman Levin

 
 
 

background process runs and output comes to terminal in 4.3.3

Post by cyb.. » Sat, 12 Aug 2000 04:00:00




> Running an AIX using class and had students do a
> ls -R / &
> This should have stopped almost instantly as ls tried to write to
terminal.
> Instead, ls spilled its guts out.

> Found that stty had terminal output stop option off. (that is, stty
-tostop)
> This is not the posix standard.  Has anybody else run into this (4.3.2
works properly).
> Is this a bug?  Or should I check more and see if somebody decided to
override a default
> setting?
> --
> Norman Levin

None of my 4.3.3 machines have this set, it looks like someone has been
playing.

Regards,
Clive

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

background process runs and output comes to terminal in 4.3.3

Post by Matthew Land » Sat, 12 Aug 2000 04:00:00



> None of my 4.3.3 machines have this set, it looks like someone has been
> playing.

> Regards,
> Clive

It is on all my 433 systems.  You don't see it set, but the
'ls -R / &' does put out output.

 - Matt

--
_______________________________________________________________________

   << Comments, views, and opinions are mine alone, not IBM's. >>

 
 
 

background process runs and output comes to terminal in 4.3.3

Post by cyb.. » Sun, 13 Aug 2000 04:00:00





> > None of my 4.3.3 machines have this set, it looks like someone has
been
> > playing.

> > Regards,
> > Clive

> It is on all my 433 systems.  You don't see it set, but the
> 'ls -R / &' does put out output.

>  - Matt

> --

_______________________________________________________________________
Quote:> Matthew Landt -  AIX and HACMP Cert. Specialist  -


Quote:>    << Comments, views, and opinions are mine alone, not IBM's. >>

You're right, I'm wrong.

Regards,
Clive

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

background process runs and output comes to terminal in 4.3.3

Post by Mark Whetze » Fri, 18 Aug 2000 04:00:00



Quote:> Running an AIX using class and had students do a
> ls -R / &
> This should have stopped almost instantly as ls tried to write to terminal.
> Instead, ls spilled its guts out.

I just checked an old AIX 3.2.4 system..  stty -a shows that '-tostop' is
set, which DISABLES the stop for background output..

Looking at AIX 4.3.3, it is the same.

--
Mark Whetzel     My comments are my own, not my company's.
Western Geophysical - A division of Baker Hughes

VOICE: (713) 689-2544              FAX: (713) 689-2758

 
 
 

background process runs and output comes to terminal in 4.3.3

Post by Norman Levi » Fri, 25 Aug 2000 04:00:00




> > Running an AIX using class and had students do a
> > ls -R / &
> > This should have stopped almost instantly as ls tried to write to terminal.
> > Instead, ls spilled its guts out.

> I just checked an old AIX 3.2.4 system..  stty -a shows that '-tostop' is
> set, which DISABLES the stop for background output..

> Looking at AIX 4.3.3, it is the same.

** and I just looked at a Linux RedHat 6.1 system and -tostop
is also set.  Guess I need to check the SPEC1170 in the AIX
readme again and see what the standard is supposed to be.
--
Norman Levin
 
 
 

1. backgrounded process dies with terminal if output redirected

I have a process which I start with an & to background it.  If I close the
controlling terminal, it continues to run.  But if I redirect the output of the
process AND background it, then closing the controlling terminal will kill the
process.

this works
1.)  ./process &
2.)  close xterm

this doesn't
1.)  ./process >& /var/logfile &
2.)  close xterm

Why?  Is there a way to accomplish this?

Using Solaris 8/9 bash shell.

Thanks,

~Shea M.

2. Fix tulip slowdowns patch

3. Killing csh background process **AND** any unfinished processes (fg and background) it started

4. uClinux on 68340

5. how to attach tty to a std output of a background process

6. Crons

7. Disable the output of background process ?!

8. PPTP->ipchains->One-way cable modem???

9. Getting output from background process

10. Output from background process problem

11. background process input/output

12. Remove a background process from the terminal

13. running an X windows process in background through ssh