<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You can use a script instead:<br>
(Like this one I got from a colleague)<br>
<br>
=== wait_for.cmd ===<br>
@ECHO OFF<br>
:Loop<br>
ping -n 5 127.0.0.1 >NUL<br>
tasklist.exe /FI "IMAGENAME eq %1" 2>NUL | find.exe "PID" >NUL
|| GOTO Continue<br>
GOTO Loop<br>
:Continue<br>
===<br>
<br>
Call the script with the exe you wait for: wait_for.cmd firefox.exe<br>
<br>
/David<br>
<pre class="moz-signature" cols="72">David Petterson <a class="moz-txt-link-rfc2396E" href="mailto:david@ifm.liu.se"><david@ifm.liu.se></a> Phone: +46(0)13-28 2617
Systems Administrator
Department of Physics, Chemistry and Biology at Linköping University
Office: F F202
SE 581 83 Linköping, Sweden</pre>
<br>
On 2011-05-20 10:09, LAPLAUD François wrote:
<blockquote
cite="mid:8A8B3489D14B0642AFF556300EAAA042037CF6D2@sphinx.sdis72.fr"
type="cite">
<pre wrap="">Hi again for another question...
I would like to install a package only if a specific process is not running.
I read <a class="moz-txt-link-freetext" href="http://wpkg.org/Script_for_checking_if_a_process_is_already_running">http://wpkg.org/Script_for_checking_if_a_process_is_already_running</a> but it is explained for win2000 OS.
I want to try it on XP and Seven.
I tried to add this line in my package.xml file.
<install cmd='%COMSPEC% /c %SystemRoot%\system32\tasklist.exe /FI "IMAGENAME eq firefox.exe" 2>NUL | %SystemRoot%\system32\find.exe /I /N "firefox.exe" >NUL'/>
But it always return 1
This command line works in a shell but not in wpkg. Does anyone of you have an idea of what is wrong ? (maybe the pipe is not possible, nor the redirection (>) ?
Thanks
Laplaud François
Service Informatique & Transmission
Service Départemental d'Incendie et de Secours de la Sarthe
13, Boulevard Saint Michel
72190 Coulaines BP 35
Tel : 02.43.54.66.06
Fax: 02.43.74.37.61
P Je pense ENVIRONNEMENT: ai-je vraiment besoin d'imprimer ce message ?
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
-------------------------------------------------------------------------
wpkg-users mailing list archives >> <a class="moz-txt-link-freetext" href="http://lists.wpkg.org/pipermail/wpkg-users/">http://lists.wpkg.org/pipermail/wpkg-users/</a>
_______________________________________________
wpkg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wpkg-users@lists.wpkg.org">wpkg-users@lists.wpkg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wpkg.org/mailman/listinfo/wpkg-users">http://lists.wpkg.org/mailman/listinfo/wpkg-users</a>
</pre>
</blockquote>
</body>
</html>