How to emulate the Expect WAIT command in pure TCL
From: Earl Grieda (egriedaQWERTY_at_IXXyahooBahoo.com)
Date: 03/24/05
- Next message: George Petasis: "Re: A tcl command logger?"
- Previous message: David N. Welton: "Re: Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Mar 24)"
- Next in thread: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- Reply: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Mar 2005 20:39:01 GMT
I have a program that runs under Linux (RH). It execs a number of
background processes. Sometimes one, or more, of the process need to be
killed (kill -9 pid). Although they are killed they end up as zombie
processes in the defunct state. If I load Expect and use the wait command
after the kill command then the processes are removed from the process
listing (ps -ae).
However, I do not want to load Expect just for one command. Is there any
way to emulate the wait command in pure TCL?
- Next message: George Petasis: "Re: A tcl command logger?"
- Previous message: David N. Welton: "Re: Dr. Dobb's Tcl-URL! - weekly Tcl news and links (Mar 24)"
- Next in thread: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- Reply: Bruce Hartweg: "Re: How to emulate the Expect WAIT command in pure TCL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|