Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jul 17th, 2006, 6:30 PM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 936
Rep Power: 4 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
os.spawnl not working

I can run the following command in Windows command line successfully (assuming I have cd'ed to the proper directory:

> Reader.exe sig5C "C:\path\to\file.ext"

I am trying to run this command from a Python script. What I have so far is below. It launches the program but it quits before it processes the files. What am I doing wrong?

fp = r'C:\path\to\file.ext'
READER = r'C:\path\to\Reader.exe'

os.spawnl(os.P_WAIT, READER, READER, 'sig5C', '"%s"'%fp)
titaniumdecoy is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
working example badbasser98 C++ 16 Mar 31st, 2006 10:29 AM
Reading and writing files not working under Windows (find under unix/linux) .TD Java 2 Mar 30th, 2006 1:42 PM
DropDownList in DataGrid not working! wright45 ASP 1 Jun 19th, 2005 12:46 PM
working with xml and c# and get this error dark_omen C# 4 May 6th, 2005 7:55 AM
JSP not working on the live server Braveheart Java 0 Mar 9th, 2005 9:20 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC