Re: finding process and waiting for it to end



Hello,

s> I am working on a jscript that launches a process (proc1).
s> Proc1 launches a secondary process (proc2) and then exits.
s> I want my script to launch proc1 and then find the process associated
s> with proc2.  So far I am doing this.

Is the secondary process a script also?

I would suggest using the JScript.NET version, if possible — there are special built-in objects for launching external processes and waiting for their termination. Nowdays it's more useful for system utilities than JS.

Why, there are the same objects in the pre-NET version of JS, something like Scripting.Shell (WScript.Shell) or Wscript object … but it's far less convenient.

(H) Serge


.



Relevant Pages

  • Re: Great SWT Program
    ... xterm instance for each copy of vi it launches. ... as the script blocks until each interactive process it launches ... files don't collectively exceed the command line length limit for the ... "interesting" files to some working directory instead of merely ...
    (comp.lang.java.programmer)
  • Re: Great SWT Program
    ... xterm instance for each copy of vi it launches. ... as the script blocks until each interactive process it launches ... If vi supports multiple documents, ... obviously have been cracking open the MS-DOS manual and writing a .bat ...
    (comp.lang.java.programmer)
  • Re: script to login and run command
    ... I found out the url that launches an update doesn't require a login so ... set objExp = CreateObject ... > How can I run a script that will log into a website and launch a specific ...
    (microsoft.public.scripting.vbscript)
  • Re: script to login and run command
    ... I found out the url that launches an update doesn't require a login so ... set objExp = CreateObject ... > How can I run a script that will log into a website and launch a specific ...
    (microsoft.public.inetserver.asp.general)
  • Re: execute run script from desktop or html
    ... > I have a script that launches an application on my Linux machine ... Hundreds of volunteers worldwide volunteering ...
    (comp.unix.shell)