Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92518

os.system error returns

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)

Show all headers | View raw


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 | NextNext in thread | Find similar | Unroll thread


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