Re: SIGTTOU in background process

From: Mike Shapp (mikeshapp_at_yahoo.com)
Date: 02/19/05

  • Next message: Eigenvector: "HPUX and 8+ character host names"
    Date: Sat, 19 Feb 2005 10:54:36 -0500
    
    

    Oops! The command is actually:

    /usr/bin/telnet c4466u45 5555 > /tmp/ob.out 2>/dev/null &

    -- 
    Mike Shapp
    mikeshapp@yahoo.com
    "Mike Shapp" <mikeshapp@yahoo.com> wrote in message
    news:hYudnZCW5sqq_YrfRVn-sQ@comcast.com...
    > rp7410 running HPUX 11i v1 (11.11)
    >
    > I've got the following script (excerpted) running as root:
    >
    >   #!/sbin/sh
    >
    >   stty  -tostop
    >   /usr/bin/telnet  c4466u45  5555  /tmp/ob.out  2>/dev/null  &
    >
    > If I run the script, and then run jobs, I see that the telnet session is
    > stopped with a SIGTTOU:
    >
    >   [1] + 4125  Stopped(SIGTTOU) /usr/bin/telnet  c4466u45  5555
    /tmp/ob.out
    > 2>/dev/null  &
    >
    >  All the docs I've read say that the "stty -tostop" should keep this from
    > happening but it doesn't seem to. I even put "stty -tostop" in root's
    > .profile.
    >
    > Any ideas?
    >
    > Thanks in advance.
    >
    > Mike Shapp
    > mikeshapp@yahoo.com
    >
    >
    

  • Next message: Eigenvector: "HPUX and 8+ character host names"

    Relevant Pages

    • Re: behavior of exec in a Linux cron job
      ... >> The thing I don't understand is how 'stty' is involved. ... >> tcl script doesn't call it, the shell script the tcl script is calling ... proc launch {cmd args} { ...
      (comp.lang.tcl)
    • stty vs interact in Expect
      ... I'm writing a script that telnets into our networking box and tests the ... I put an "interact" after the expect for the ... change the terminal settings with stty. ...
      (comp.lang.tcl)
    • Re: behavior of exec in a Linux cron job
      ... > The thing I don't understand is how 'stty' is involved. ... > tcl script doesn't call it, the shell script the tcl script is calling ... Another wild guess: some other script started from yours does ...
      (comp.lang.tcl)
    • Re: Unable to correct typing mistake from the console.
      ... >> Choowie wrote: ... >>> I have a Perl script which I launch from a serial port console. ... >> stty. ...
      (comp.lang.perl.misc)
    • Re: stty: : Inappropriate ioctl for device
      ... > I am getting this error in a standard ksh script ... The only stty that the shell ... $ENV when starting a script. ... Maybe you have an "stty" command in that file. ...
      (comp.unix.shell)