In <> Satish Muthali 
<> 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 =['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 =['stressapptest', freecalc_total], 
        stdout=devnull, stderr=subprocess.STDOUT)

John Gordon         Imagine what it must be like for a real medical doctor to    watch 'House', or a real serial killer to watch 'Dexter'.


Reply via email to