I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be patient with me. Thanks in advance!
bugmenot 25 Posting Whiz in Training
Recommended Answers
Jump to PostYou can use module subprocess and Popen() to pass arguments to and from external programs.
Jump to PostHere is a general example you can adopt, let us know if it works for your case:
# using module subprocess to pass arguments to and from an # external program import subprocess # put in the corresponding strings for # "mycmd" --> external program name # …
All 8 Replies
jlm699 320 Veteran Poster
bugmenot 25 Posting Whiz in Training
Ene Uran 638 Posting Virtuoso
bugmenot 25 Posting Whiz in Training
Ene Uran 638 Posting Virtuoso
bugmenot commented: Good post, well commented, although not exactly what I was looking for ;) +2
bugmenot 25 Posting Whiz in Training
bugmenot 25 Posting Whiz in Training
BearofNH 104 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.