X-Received: by 10.66.235.36 with SMTP id uj4mr7970934pac.9.1377692255109; Wed, 28 Aug 2013 05:17:35 -0700 (PDT) X-Received: by 10.49.53.38 with SMTP id y6mr671qeo.38.1377692254874; Wed, 28 Aug 2013 05:17:34 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!n2no5865677pbg.1!news-out.google.com!rn2ni52234pbc.1!nntp.google.com!q10no1910368qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Wed, 28 Aug 2013 05:17:34 -0700 (PDT) In-Reply-To: <521de8db$0$6599$c3e8da3$5496439d@news.astraweb.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.92.173.79; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 NNTP-Posting-Host: 176.92.173.79 References: <521cdce7$0$29986$c3e8da3$5496439d@news.astraweb.com> <3d299421-7c03-4c92-b860-15b111e75bc1@googlegroups.com> <521de8db$0$6599$c3e8da3$5496439d@news.astraweb.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of From: Ferrous Cranus Injection-Date: Wed, 28 Aug 2013 12:17:34 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:53141 =CE=A4=CE=B7 =CE=A4=CE=B5=CF=84=CE=AC=CF=81=CF=84=CE=B7, 28 =CE=91=CF=85=CE= =B3=CE=BF=CF=8D=CF=83=CF=84=CE=BF=CF=85 2013 3:11:07 =CE=BC.=CE=BC. UTC+3, = =CE=BF =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Steven D'Aprano =CE=AD=CE= =B3=CF=81=CE=B1=CF=88=CE=B5: > On Wed, 28 Aug 2013 01:46:01 -0700, Ferrous Cranus wrote: >=20 >=20 >=20 > > =CE=A4=CE=B7 =CE=A4=CF=81=CE=AF=CF=84=CE=B7, 27 =CE=91=CF=85=CE=B3=CE= =BF=CF=8D=CF=83=CF=84=CE=BF=CF=85 2013 8:07:52 =CE=BC.=CE=BC. UTC+3, =CE=BF= =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Steven >=20 > > D'Aprano =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: >=20 >=20 >=20 > >> Hint: you can use >=20 > >> "print(type(page), file=3Dopen('path/to/some/file', 'w'))" >=20 > >>=20 >=20 > >> to see the type of the variable 'page' without displaying it on your >=20 > >> website. >=20 >=20 >=20 >=20 >=20 > > i tried to do what you said and iam receing this: >=20 > >=20 >=20 > > [Wed Aug 28 08:43:31 2013] [error] [client 108.162.231.120] Original >=20 > > exception was: [Wed Aug 28 08:43:31 2013] [error] [client >=20 > > 108.162.231.120] Traceback (most recent call last): [Wed Aug 28 08:43:3= 1 >=20 > > 2013] [error] [client 108.162.231.120] File >=20 > > "/home/nikos/public_html/cgi-bin/metrites.py", line 39, in [We= d >=20 > > Aug 28 08:43:31 2013] [error] [client 108.162.231.120] print( >=20 > > type(page), file=3Dopen('../err.out', 'w') ) [Wed Aug 28 08:43:31 2013] >=20 > > [error] [client 108.162.231.120] PermissionError: [Errno 13] >=20 > > \\u0386\\u03c1\\u03bd\\u03b7\\u03c3\\u03b7 >=20 > > \\u03c0\\u03c1\\u03cc\\u03c3\\u03b2\\u03b1\\u03c3\\u03b7\\u03c2: >=20 > > '../err.out' [Wed Aug 28 08:43:31 2013] [error] [client 108.162.231.120= ] >=20 > > Premature end of script headers: metrites.py >=20 >=20 >=20 > Then pick a different location, one where you have permission to write=20 >=20 > files! >=20 >=20 >=20 > Honestly Nikos, I'm not trying to be rude, but if you cannot think of=20 >=20 > this on your own after all this time we've been helping you, perhaps=20 >=20 > programming is not the right vocation for you. Perhaps you need to=20 >=20 > consider a change of career. >=20 >=20 >=20 > If you do decide to stay as a web developer, you need to start thinking: >=20 >=20 >=20 > * What is this error message telling me? ("Permission denied") >=20 >=20 >=20 > * How can I fix that? ("I need permission to read the file. Maybe try a= =20 >=20 > different file?") >=20 >=20 >=20 >=20 >=20 >=20 >=20 > > Also many times when i try to view the error_log by >=20 > >=20 >=20 > > tail -F /usr/local/apache/logs/error_log & >=20 > >=20 >=20 > > i get realtime scrolling of other joomla webistes pho errors and i have >=20 > > hard time trackign my own webistes erros. >=20 > >=20 >=20 > > is ther a work around for that? >=20 >=20 >=20 >=20 >=20 > That's an apache logging issue, not Python, and I don't know enough about= =20 >=20 > apache to do more than guess that there probably is a solution but I have= =20 >=20 > no idea what it is. >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 >=20 > Steven As i have pointed out i as the owner of the accoutn have read and write per= imssion bot at www/ and www/cgi-bin i also chnage the filename and still cant write to the file. if you as experts cannot help resolve this, how me as a newbiw can?