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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with programming in the terminal

Status
Not open for further replies.

javabeanx

Programmer
Apr 29, 2002
10
IN
I have two process p1,p2 started using execl or system
I am trying to send input from the keyboard simultaneously to both the process.I have no access to the codes of both.
When p1 terminates I must terminate p2
Please give some clues I'm really stuck
Nandini
 
The way to work is (for the second question),write a program
that asks the active processes (every 2 secs or so) and search for "p1",when it has disappeared from the output,execute a kill on p2.
What about the keyboard input?
You really should give us some more explanation...
Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top