Bluehost.com Web Hosting $6.95

CGI+execute external program+Apache serveur

This is a discussion on CGI+execute external program+Apache serveur within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hello :) My configuration: Windows XP, Apache server, Cgi Script in PYTHON , CM synergy (an external program) 1) I want to ...


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 11-09-2006
naima.mans@gmail.com
 
Posts: n/a
Default CGI+execute external program+Apache serveur

Hello :)

My configuration:
Windows XP, Apache server, Cgi Script in PYTHON , CM synergy (an
external program)

1)
I want to start an external program in my python script... It works
when i execute it manually (double click) and the external program
window appear. but when i call it from the server
(http://localhors/cgi-bin/extract_source.py) it goes VERY slowly.....
and failed (=>The page cannot be displayed)

here the program:
cmd= "\\\\path\\ccm start"
sys.stdin.flush()
sys.stdout.flush()
sys.stderr.flush()
stdin, stdout, stderr = os.popen3(cmd) # it only
execute the cmd commande
sys.stdin.flush()
sys.stdout.flush()
sys.stderr.flush()

2)
Showing that it failed, i have tried another approch: starting manually
the external program (and open his windows) then call interactive
command with the external program through the script.
BUT
When i start the program (CM synergy) manually... and then want to
execute commande with my script (like "check out") it shows this
message "Session not found, please run "ccm start" command"

:)
thanks for reading, thanks for your help..i'm desesperate!

Tachi

 
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 01:04 AM.


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