Hi, Laure.
I've got a sollution.
Provided that I got no more answer than yours, I had to investigate a
little.
So I've found a pretty utility unix-like called ps.exe that gives me the
parent-pid.
With this and a little BP, voila!
I've put it in production and it seems to work fine.
Sometimes it is necessary to run aditional uvlictool with clean_lic -a but
now, we can avoid the reboot.
I join the url and source. Maybe could fit you.
http://www.geocities.com/lc_castro/winnt.htm
****************************************************************************
**
* Programa que reccibe UN parametro:
* 1.- numero de PID que deseamos matar.
*
* Ejecuta un PS.EXE y localiza el PID
* Si se trata de un "uvapi" entonces ejecuta bin/kill del proceso padre
****************************************************************************
**

$include UNIVERSE.INCLUDE MACHINE.NAME

*
* Si no pasan argumentos, muestra sintaxis
*
      get(arg.,1) victima else goto SINTAXIS

      EXECUTE "USERS"
      CRT "MATANDO PROCESO: ": victima :", por favor espere ..."
      CRT ""
      gosub LOCALIZA
      CRT ""
      CRT "Consultado numero de usuarios, por favor espere..."
      SLEEP 4
      EXECUTE "USERS"

      RETURN

***
SINTAXIS:
      PRINT "Sintaxis QSIS.MATA User_No"
      PRINT "         MATA LA SESION QUITERWEB DE ESE USUARIO"
      STOP


LOCALIZA:
      CMD = "DOS /C PS.EXE"
      EXECUTE CMD CAPTURING lista_procesos
      FINDSTR victima IN lista_procesos SETTING numlinea ELSE numlinea = 0
      IF numlinea THEN
*CRT numlinea
         LINEA = lista_procesos<numlinea>
*CRT LINEA
         ppid = SUBSTRINGS(LINEA,6,4)
*CRT ppid
         FINDSTR "uvapi" IN LINEA SETTING FOUND ELSE FOUND = 0
         IF FOUND THEN
            CMD = "DOS /C 'bin\kill ": ppid :"'"
*CRT CMD
            EXECUTE CMD
         END
      END


      RETURN
   END

Regards,
Augusto Alonso

----- Original Message -----
From: "IT-Laure Hansen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 10, 2006 6:56 PM
Subject: [U2] Installing UV 10.1 onto Windows 2003 server


> Has anyone encountered a problem running Universe 10.1 on Windows 2003
> server, besides that identified previously in this group by Mr. Alonso
> of Quiter Servicios Informaticos (no release of UV user licenses on
> dropped connections)?
>
> There are several scary-sounding documents in the tech notes about this
> on the IBM web site, but I have been unable to access them (login not
> set up properly - don't get me started on this one).
>
> Thanks in advance.
>
> Laure Hansen,
> City of Redwood City
> Information Technology
> www.redwoodcity.org <http://www.redwoodcity.org/>
> 1017 Middlefield Road
> Redwood City, CA 94063
> Tel: 650-780-7087
> Fax: 650-556-9204
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to