Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2004, 10:44 AM
ofricker ofricker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 7 ofricker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Start exe incl. parameter

Hello

In a cgi script I'm trying to start an exe file (in a new process). The exe file call has to include the parameter ">log.txt" to save the output of the exe into a log file. After the exe has been executed the focus has to return back to the cgi script (to evaluate the log file).

The cgi script is stored in "d:\cgi-bin"
The exe is stored in "c:\prog\"

Using "os.system ("start c:\prog\program.exe >log.txt")" did start the programm.exe but generated an empty log file. If the script file and the exe are located in the same folder it works.
As workaround I now start the program through a bat file, but after the exe has been executed the process bar in the bottom of the browser window keeps running... besides that I don't really want to use a bat file...

I'm sure there is a simple solution for this one but I just can't get it working.

Thanks in advance for your help
Oli

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Start exe incl. parameter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT