PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.win > multiple instances of CGI unable to exec cmd simultaneously
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.win Web servers for MS Windows and NT.

multiple instances of CGI unable to exec cmd simultaneously

Réponse
 
LinkBack Outils de la discussion
Vieux 08/09/2005, 22h04   #1
hgopakumar@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut multiple instances of CGI unable to exec cmd simultaneously


I am using Apache 2.0.54 on Windows XP SP2. I am invoking CGI (.exe)
over SSL via POST method. Inside the CGI there is a command:

system("tar ...");

If I invoke this CGI simultaneously only the first one is able to
execute the command, later ones give the error:

The process cannot access the file because it is being used by another
process.\r, referer: https://192.168.1.1/

Any ideas, would this be a configuration problem ?

--Gopu

  Réponse avec citation
Vieux 09/09/2005, 00h37   #2
Dr Clue
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: multiple instances of CGI unable to exec cmd simultaneously

hgopakumar@gmail.com wrote:
> I am using Apache 2.0.54 on Windows XP SP2. I am invoking CGI (.exe)
> over SSL via POST method. Inside the CGI there is a command:
>
> system("tar ...");
>
> If I invoke this CGI simultaneously only the first one is able to
> execute the command, later ones give the error:
>
> The process cannot access the file because it is being used by another
> process.\r, referer: https://192.168.1.1/
>
> Any ideas, would this be a configuration problem ?


I always have a harder time with this type of thing on windows,
but possibly could you mark the folder sharable?




--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`
  Réponse avec citation
Vieux 09/09/2005, 20h37   #3
hgopakumar@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: multiple instances of CGI unable to exec cmd simultaneously

I got it working. Problem was that, for debugging I was executing:

system("tar ... 2>> debug.out");

So the first instance opened the debug.out file and Windows does not
allow the subsequent instances to open the file for writing.

Thank You Dr. Clue for responding.

--Gopu

  Réponse avec citation
Vieux 09/09/2005, 23h27   #4
Dr Clue
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: multiple instances of CGI unable to exec cmd simultaneously


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h34.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07585 seconds with 12 queries