Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92523
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: os.system error returns |
| Date | 2015-06-12 13:53 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <mleo7v$b5p$2@reader1.panix.com> (permalink) |
| References | <2ebdfdf225c075b2f5ef350b06bc14f0@myglnc.com> <mailman.420.1434116599.13271.python-list@python.org> |
On 2015-06-12, Ben Finney <ben+python@benfinney.id.au> wrote:
> There is no standardisation of exit status values between different
> programs. The best one can say is “exit status 0 means success”.
> Anything further is specific to particular programs and is not
> universal.
>
> You'll need to see the documentation for ‘modprobe(1)’ to find out what
> its different exit status values mean.
It's modprobe(8), and all the man page says is that it returns
non-zero if you try to remove or insert a module it can't find.
Explicitly checking for an os.system() return value of 1<<8 seems like
a pretty bad idea to me, since there's nothing in the modprobe docs
that gurantees it will return 1 under some particular conditions.
--
Grant Edwards grant.b.edwards Yow! YOU PICKED KARL
at MALDEN'S NOSE!!
gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: os.system error returns Ben Finney <ben+python@benfinney.id.au> - 2015-06-12 23:43 +1000 Re: os.system error returns Grant Edwards <invalid@invalid.invalid> - 2015-06-12 13:53 +0000
csiph-web