Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
>From: Victor Subervi >Subject: Re: Automatic chmod >To: mahle...@yahoo.com, freebsd-questions@freebsd.org >Date: Friday, October 9, 2009, 11:20 AM > >User? I only have one user on this shared server. Here's the code: > >#!/usr/local/bin/python >import cgitb

Re: Automatic chmod

2009-10-09 Thread Victor Subervi
ot; + str(picid) + "';" > cursor.execute(sql) > content = cursor.fetchall()[0][0].tostring() > cursor.close() > print '''Content-Type: text/plain > Content-Encoding: base64 > ''' > print > print content.encode('base64')

Re: Automatic chmod

2009-10-09 Thread Victor Subervi
ect " + pic + " from productsX where id='" + str(picid) + "';" cursor.execute(sql) content = cursor.fetchall()[0][0].tostring() cursor.close() print '''Content-Type: text/plain Content-Encoding: base64 ''' print print content.encode(&

Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
>>From: Victor Subervi >>Subject: Automatic chmod >>To: freebsd-questions@freebsd.org >>Date: Friday, October 9, 2009, 10:19 AM >> >>Hi; >>I have a python script that automatically writes another script. I need to >>be able to automatically ch

Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
>From: Victor Subervi >Subject: Automatic chmod >To: freebsd-questions@freebsd.org >Date: Friday, October 9, 2009, 10:19 AM > >Hi; >I have a python script that automatically writes another script. I need to >be able to automatically chmod the script so that it will ex

Automatic chmod

2009-10-09 Thread Victor Subervi
Hi; I have a python script that automatically writes another script. I need to be able to automatically chmod the script so that it will execute. Also, it appears that's not enough, because when I manually chmod the script (775), it throws this error: fopen: Permission denied TIA, V ___