Bluehost.com Web Hosting $6.95

multiple instances of CGI unable to exec cmd simultaneously

This is a discussion on multiple instances of CGI unable to exec cmd simultaneously within the Windows Web Servers forums, part of the Web Server and Related Forums category; I am using Apache 2.0.54 on Windows XP SP2. I am invoking CGI (.exe) over SSL via POST ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-08-2005
hgopakumar@gmail.com
 
Posts: n/a
Default 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

  #2 (permalink)  
Old 09-09-2005
Dr Clue
 
Posts: n/a
Default 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 ...
--`
  #3 (permalink)  
Old 09-09-2005
hgopakumar@gmail.com
 
Posts: n/a
Default 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

  #4 (permalink)  
Old 09-10-2005
Dr Clue
 
Posts: n/a
Default Re: multiple instances of CGI unable to exec cmd simultaneously

hgopakumar@gmail.com wrote:
> 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.
>


No problem. I'll try and keep your experiance and ultimate resolution
in mind for the next person that asks a similar question.

Togeather us lowly coders can solve most anything!



--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0