sysfault wrote:
> I'm using os.popen() to open that program via the syntax:
> os.popen('pidof var_name', 'r'), but as you know var_name is not
> expanded within single quotes,
os.popen('pidof %s' % var_name, 'r')
--
http://mail.python.org/mailman/listinfo/python-list
sysfault wrote:
> Hello, I have a function which takes a program name, and I'm using
> os.popen() to open that program via the syntax: os.popen('pidof var_name',
> 'r'), but as you know var_name is not expanded within single quotes, I
> tried using double quotes, and such, but no luck. I was lookin
Hello, I have a function which takes a program name, and I'm using
os.popen() to open that program via the syntax: os.popen('pidof var_name',
'r'), but as you know var_name is not expanded within single quotes, I
tried using double quotes, and such, but no luck. I was looking for a way
to have var_