Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Python: call variables in os.system
Name: Six Date: September 1, 2003 at 09:14:02 Pacific OS: Slackware CPU/Ram: 1.3 512
Comment:
Hi, I am new to Python and have an interactive script going. I can't figure out how to get a variable passed to an outside command with os.system module. example:
dir = "/home/test" os.system('ls $dir')
the ls command works, jut can't find $dir. just plain dir without $ doesn't work.
Summary: Is it possible to use user/system environment variables in VB? I'm integrating a batch file into a VB program. The batch is writing to: %temp%\tmp.tmp so I'm wondering if there's a way I can open that...
Summary: Hi can any one tell me how to store a system() call result in a string in c++ like as , string s = system("pwd"); As such this dosn't work as the pwd is not stored in string s. Is there any other w...
Summary: Is there a way to set system environment variables in vb. I see the class environ to view them, but what if I want to set them? thanks, Alex ...