In <[email protected]> Satish Muthali
<[email protected]> writes:
> Now I want to feed the value for 'freecalc_total' as an argument to
> a command executed by the shell.
> For example:
> devnull = open(os.devnull, 'w')
> runCommand = subprocess.call(['stressapptest', '<I want to pass
> the value of freecalc_total here>'], stdout=devnull,stderr=subprocess.STDOUT)
> devnull.close()
I think you can just include freecalc_total directly as part of the
argument list, like this:
runCommand = subprocess.call(['stressapptest', freecalc_total],
stdout=devnull, stderr=subprocess.STDOUT)
--
John Gordon Imagine what it must be like for a real medical doctor to
[email protected] watch 'House', or a real serial killer to watch 'Dexter'.
--
https://mail.python.org/mailman/listinfo/python-list