472,100 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,100 software developers and data experts.

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 1375
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.