| naima.mans@gmail.com 2006-11-13, 8:40 am |
| 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
|