Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37727
| 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!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <marduk@letterboxes.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*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; 'received:internal': 0.09; 'url:localhost': 0.09; 'apache': 0.13; 'sat,': 0.15; 'default).': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'php)': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:mail.srv.osa': 0.16; 'received:messagingengine.com': 0.16; 'received:nyi.mail.srv.osa': 0.16; 'received:osa': 0.16; 'received:srv.osa': 0.16; 'subject:Permission': 0.16; 'string': 0.17; 'wrote:': 0.17; 'config': 0.17; '(in': 0.18; 'jan': 0.18; 'code.': 0.20; 'permission': 0.20; 'question.': 0.20; 'object.': 0.22; 'statement': 0.23; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'looks': 0.26; 'am,': 0.27; 'used,': 0.27; 'run': 0.28; 'url:client': 0.29; 'probably': 0.29; 'maybe': 0.29; 'connection': 0.30; 'error': 0.30; 'code': 0.31; 'asking': 0.32; 'file': 0.32; 'running': 0.32; 'getting': 0.33; 'traceback': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'text': 0.34; 'open': 0.35; 'doing': 0.35; 'really': 0.36; 'but': 0.36; 'client': 0.36; 'should': 0.36; 'thank': 0.36; 'too': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'called': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'enable': 0.60; 'your': 0.60; 'you.': 0.61; 'kind': 0.61; 'header:Message-Id:1': 0.62; '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-sha1; c=relaxed/relaxed; d=letterboxes.org; h=message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= SFa18eq7e3fErtzxnAvhBH67nOg=; b=K1qZoHVlhmMuY6c5bYVKEgyB1G/g3Qdx 02Gv0cbuC8bosNhhZBkDSR8bn3whwXXAijUSABl8ZyZsqab99tAbdU2nW3A5ifyt E0OeUzBuRLrFrI9sTDLgLmLb3AvwQI2chW9y0aoWzbkK1DU28LXLJxdAmC0Sx6vM udyTu6baLoQ= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=SFa18eq7e3fErtzxnAvhBH67nOg=; b=VDl RiEcgtotMFjCrmSxAJdUCmsO4ZaunCaFgUz7qBTN7cFGHrttG02EFjSPYacVGFFd 3iiqohoFn3xLsybch2k5tUTqpslfV9j2mKDuMS0V40aaQObB30Trwjmrkz0jbOxV v4klauE0fIEncPCvomJZMaYL8HSJ7DG6DjT/eJMA= |
| X-Sasl-Enc | 1YiGh2urPK6/0q2pZ1aM9iJASqg0XiAx531m9sByT3Qs 1359220042 |
| From | Albert Hopkins <marduk@letterboxes.org> |
| To | python-list@python.org |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| Content-Type | text/plain |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-bd17cbe4 |
| In-Reply-To | <CAPM-O+zw0CY5+jYdLV4+1-37hsx=gJGHaCr2RQs+rLs_MPfPKA@mail.gmail.com> |
| References | <c2c13a57-6f5e-46d0-b7f9-daaf6242c39a@googlegroups.com> <CAPM-O+zLqF9a1evaBPAHWLMD2pG4dfrQ-_=_dxZZT4H+Mbg9iA@mail.gmail.com> <CAPM-O+zw0CY5+jYdLV4+1-37hsx=gJGHaCr2RQs+rLs_MPfPKA@mail.gmail.com> |
| Subject | Re: sockobj.connect Errno 13 Permission denied |
| Date | Sat, 26 Jan 2013 12:07:22 -0500 |
| 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.1085.1359220045.2939.python-list@python.org> (permalink) |
| Lines | 56 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1359220045 news.xs4all.nl 6930 [2001:888:2000:d::a6]:46983 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37727 |
Show key headers only | View raw
On Sat, Jan 26, 2013, at 08:52 AM, Joel Goldstick wrote:
> 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
>
Also your php/apache config needs to be set up to enable execs (I think
it's off by the default).
Either way it's a PHP question, not a Python question.
Back to comp.lang.python | Previous | Next — Previous 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