Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37722
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'subject:skip:s 10': 0.05; 'arguments': 0.07; 'exec': 0.07; 'executable': 0.07; 'permission.': 0.07; 'python': 0.09; 'errno': 0.09; 'url:localhost': 0.09; 'cc:addr:python-list': 0.10; 'apache': 0.13; 'sat,': 0.15; 'php)': 0.16; 'subject:Permission': 0.16; 'string': 0.17; 'wrote:': 0.17; '(in': 0.18; 'jan': 0.18; 'code.': 0.20; 'email addr:gmail.com>': 0.20; 'permission': 0.20; 'object.': 0.22; 'cc:2**0': 0.23; 'statement': 0.23; 'command': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'used,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'run': 0.28; 'url:client': 0.29; 'url:mailman': 0.29; 'probably': 0.29; 'maybe': 0.29; 'connection': 0.30; 'error': 0.30; 'code': 0.31; 'asking': 0.32; 'url:python': 0.32; 'file': 0.32; 'running': 0.32; 'url:listinfo': 0.32; 'getting': 0.33; 'traceback': 0.33; 'problem': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'open': 0.35; 'doing': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; 'client': 0.36; 'should': 0.36; 'thank': 0.36; 'too': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'called': 0.39; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'you.': 0.61; 'kind': 0.61; 'show': 0.63; '26,': 0.65; 'regards.': 0.66; 'account': 0.67; 'soon.': 0.73; '2013': 0.84; 'url:php': 0.86; 'joel': 0.91; 'spoke': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=95UtY2nkAd3FPjKZt4xccHK9FRLBqqV5MdgsnI0klQs=; b=UL1lo5F1n8PaVvuFajbrW9EpqVDQGD5Xh0uhPgjOPJ2bg47N7weDOOz16ACjkPy2FX bjnVPOmeEGbrk4QRfgH/leR8ig1TxpBUgyctBW0Wf3VkKPIV28VKZplaTdinIZsCo/VI uRPZyQWI+7k0L9amf1/LA90WI+K4ModHfyfwWLkQU3wWlsL+phM2o9iY5o6sBqdI5Hup 00/qM7sYzPhV+42PoQu6opePYHw48vVZ31gncjK/dlBqnpOLOtogQxMzeO9GJscJwc+S XvSo9ER/H94N7WjcgSdes6mApAcdc8wMWePrFfIn6cjq232X0kYxnt0fy64D0i5P+yZW u1Pw== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.98.134 with SMTP id ei6mr8214472vdb.114.1359208357176; Sat, 26 Jan 2013 05:52:37 -0800 (PST) |
| In-Reply-To | <CAPM-O+zLqF9a1evaBPAHWLMD2pG4dfrQ-_=_dxZZT4H+Mbg9iA@mail.gmail.com> |
| References | <c2c13a57-6f5e-46d0-b7f9-daaf6242c39a@googlegroups.com> <CAPM-O+zLqF9a1evaBPAHWLMD2pG4dfrQ-_=_dxZZT4H+Mbg9iA@mail.gmail.com> |
| Date | Sat, 26 Jan 2013 08:52:37 -0500 |
| Subject | Re: sockobj.connect Errno 13 Permission denied |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | nobody <jupiter.hce@gmail.com> |
| Content-Type | multipart/alternative; boundary=20cf307d04264e245004d4315b33 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1077.1359208359.2939.python-list@python.org> (permalink) |
| Lines | 134 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1359208359 news.xs4all.nl 6941 [2001:888:2000:d::a6]:57371 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37722 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Sat, Jan 26, 2013 at 8:47 AM, Joel Goldstick <joel.goldstick@gmail.com>wrote:
>
>
>
> On Sat, Jan 26, 2013 at 6:19 AM, nobody <jupiter.hce@gmail.com> wrote:
>
>> Hi,
>>
>> I have a client program Client.py which has a statement of
>> sockobj.connect(), the port number 60000 is used, so no problem from port
>> permission.
>>
>> I am puzzled because I can run Client.py from command line in my user
>> account or apache user account without any problems.
>>
>> But if I run it from a web page http://localhost/client.php, the
>> client.php called exec("Client.py"),
>
>
>
> Check the arguments to exec. I think it has to be an open file object.
>
>
>
>> then it got an exception of sockobj.connect Errno 13 Permission denied.
>>
>> Why it can run from command line, but cannot make connection from a web
>> file? Appreciate any tips and clues.
>>
>> Thank you.
>>
>> Kind regards.
>>
>>
>>
Maybe I spoke too soon. You should probably be asking in a php forum since
what you are doing is running a php exec. If you are actually getting a
python error you should show the code and the traceback so that someone can
look at your code.
In either case (py and php) it looks like exec needs either a string of
executable text or (in py case) an open file handle. So the code you
describe isn't really what you are running
>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com
>
--
Joel Goldstick
http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sockobj.connect Errno 13 Permission denied nobody <jupiter.hce@gmail.com> - 2013-01-26 03:19 -0800 Re: sockobj.connect Errno 13 Permission denied Joel Goldstick <joel.goldstick@gmail.com> - 2013-01-26 08:47 -0500 Re: sockobj.connect Errno 13 Permission denied Joel Goldstick <joel.goldstick@gmail.com> - 2013-01-26 08:52 -0500 Re: sockobj.connect Errno 13 Permission denied Albert Hopkins <marduk@letterboxes.org> - 2013-01-26 12:07 -0500
csiph-web