Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92518
| Date | 2015-06-12 09:07 -0400 |
|---|---|
| From | Grawburg <grawburg@myglnc.com> |
| Subject | os.system error returns |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.419.1434115180.13271.python-list@python.org> (permalink) |
I have a piece of code written for a Raspberry Pi with no explanation for two of the lines -- and I can't find an explanation I understand.
Here are the lines:
if os.system('modprobe --first-time -q w1_gpio') ==0
if os.system('modprobe -q w1_gpio') == 256:
I know what the 'modprobe...' is, it's the 0 and the 256 I don't get. Where do these numbers come from?
I recognize they're some kind of error returns, but don't know what they mean.
Thanks,
Brian Grawburg
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
os.system error returns Grawburg <grawburg@myglnc.com> - 2015-06-12 09:07 -0400 Re: os.system error returns Grant Edwards <invalid@invalid.invalid> - 2015-06-12 13:48 +0000
csiph-web