How to emulate the Expect WAIT command in pure TCL

From: Earl Grieda (egriedaQWERTY_at_IXXyahooBahoo.com)
Date: 03/24/05


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?



Relevant Pages

  • Re: IIS-bug - CGI-applikation terminates when loading standard DLL
    ... Hit refresh and the page will load fine second time round. ... not executed with the CreateProcessAsUserAPI call by IIS anymore. ... Here is a description of how to set the metabase property which control ... If the command is successful, it will tell you it updated the setting, ...
    (microsoft.public.inetserver.iis)
  • Re: UserForm Is A Class
    ... I have a simple userform with one command button. ... I see the behaviour that you point out about Load and Show and wil then ... Load myForm ... the Unload is done implictly when then routine ends and the ...
    (microsoft.public.word.vba.general)
  • Re: The Spectrum is a computer for GIRLS !!!
    ... have a load of code after it but all programs were basic programs ... that start out like this are machine code. ... Four POKES and a SYS command and the block of memory you specify is saved to ... the load is finished, is pointing to a new piece of machine code. ...
    (comp.sys.cbm)
  • Re: New TRS80 User & TRS32
    ... All versions of TRSDOS I have can give me a directory but when I load ... There are differences between the dos'es there, the program can be specified on the BASIC command but generally what I describe above works. ... I did have a look at the available downloads and found that they come as cas bas and dsk (for disk). ...
    (comp.sys.tandy)
  • Re: Noob kernel update saga continues
    ... Do you still have to load the i2c modules by hand? ... The tleds command just uses my keyboard leds to indicate net traffic ...
    (alt.os.linux.suse)