>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
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')
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(&
>>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
>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
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
___