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


Groups > comp.lang.python > #37721

Re: sockobj.connect Errno 13 Permission denied

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'subject:skip:s 10': 0.05; 'arguments': 0.07; 'permission.': 0.07; 'errno': 0.09; 'url:localhost': 0.09; 'cc:addr:python-list': 0.10; 'apache': 0.13; 'sat,': 0.15; 'subject:Permission': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'email addr:gmail.com&gt;': 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; 'am,': 0.27; 'used,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'run': 0.28; 'url:client': 0.29; 'url:mailman': 0.29; 'connection': 0.30; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'problem': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'open': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'client': 0.36; 'thank': 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; 'you.': 0.61; 'kind': 0.61; '26,': 0.65; 'regards.': 0.66; 'account': 0.67; '2013': 0.84; 'url:php': 0.86; 'joel': 0.91
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=HCwiLCbztV2QFSjv3L1P+o3ELmLIa9htq1T0b9oAfI4=; b=nzJ5aL6K2cZVPboHq12f9YUlnNYbXF/FpdMxDaBlly+rLRuer4NBQu62ar8tQ0bkB6 TjyxIq7CX/rS/KLzTtZ78nA7ivCH3hSU7yD5K1GuO7/GMP2ei+310dyyx1KBj9C+XGZM knhqdwgygOJfEXpMdcymIeMF4o7Pnu8CfBsm0PUc95IO0UC4tQhb6I0/eKqpI3TmPt8v CzTXSo0uhLTb0yl7ZgoAdMRwzf5qM+vTDzuMN4oA/+IVR4wvDJpYd+kg2RS8jqXtaPFF ReUkE7LgWTtF8Y5kXGSg2/JWS2oGhKo8fsBl2VIAICgaoHIXtaf2LByjt2T+BnjJrMQy oCQg==
MIME-Version 1.0
X-Received by 10.52.76.7 with SMTP id g7mr8284833vdw.95.1359208040427; Sat, 26 Jan 2013 05:47:20 -0800 (PST)
In-Reply-To <c2c13a57-6f5e-46d0-b7f9-daaf6242c39a@googlegroups.com>
References <c2c13a57-6f5e-46d0-b7f9-daaf6242c39a@googlegroups.com>
Date Sat, 26 Jan 2013 08:47:20 -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=bcaec50162416cef1b04d43148b4
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.1076.1359208049.2939.python-list@python.org> (permalink)
Lines 87
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1359208049 news.xs4all.nl 6925 [2001:888:2000:d::a6]:53600
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:37721

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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.
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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