Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STTY TOSTOP?

Status
Not open for further replies.

SteveR77

Programmer
Sep 18, 2000
813
US
I'm running into something odd. When I set stty -tostop and go to execute a job in the background using <jobname> & it's as though the system never sees that the stty was toggled to allow the background job to send standard output to the screen.

I have checked the /etc/profile, the .profile and the .kshrc file and I do not see anything that should be causing this.

Thanks in advance. I know I'm missing something that should be obvious.


Steve
 
DSMARWAY -

I was aware of this issue as it related to anything that was attempting to send stdout with the stty 'tostop' option set.

In my own case the resultion was to remove the header for the KORN shell. Orignially I had the following :

#!/ksh/bin

while (true)
do
date
sleep 3
done

This little endless loop script is used to show how to use process signals such as CTRL+C and CTRL+Z along with what occurs is the process is started as a background job.

Once I took the header out and let the script run in the Bourne shell everything was OK.

If anyone has the specific reasons why this worked in my case I would love to hear them.

Hope this helps someone else

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top