Web Servers on Windows - CGI+execute external program+Apache serveur

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > November 2006 > CGI+execute external program+Apache serveur





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CGI+execute external program+Apache serveur
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com