469,588 Members | 2,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

Help Assigning os Variable in Python

Hey Guys,

I am trying to assign the output of this command,

import os

os.system(exritool nc-stats.ri pm-radiator.inlet.ssh.nc -detail | grep -A 2 MKS | tail -1 | awk '{print $2, $3, $4}')

Which will just give me a number, to a variable we'll call "x_min" . I tried
x_min = os.system(cmd), but it didn't work. Anyone know how to get around this? Thanks
Aug 9 '07 #1
1 1328
Nevermind i figured it out
Aug 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Michael | last post: by
3 posts views Thread by jena | last post: by
13 posts views Thread by na1paj | last post: by
43 posts views Thread by ZillionDollarSadist | last post: by
4 posts views Thread by yadin | last post: by
9 posts views Thread by J. Peng | last post: by
1 post views Thread by The Pythonista | last post: by
2 posts views Thread by WP | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.