By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,616 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,616 IT Pros & Developers. It's quick & easy.

Help Assigning os Variable in Python

P: 4
Hey Guys,

I am trying to assign the output of this command,

import os

os.system(exritool nc-stats.ri -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
Share this Question
Share on Google+
1 Reply

P: 4
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.