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

Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
From: Victor Subervi victorsube...@gmail.com 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 execute. Also

Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
From: Victor Subervi victorsube...@gmail.com 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 execute. Also

Re: Automatic chmod

2009-10-09 Thread Victor Subervi
= cursor.fetchall()[0][0].tostring() cursor.close() print '''Content-Type: text/plain Content-Encoding: base64 ''' print print content.encode('base64') TIA, V On Fri, Oct 9, 2009 at 10:14 AM, Richard Mahlerwein mahle...@yahoo.comwrote: From: Victor Subervi victorsube...@gmail.com Subject: Automatic chmod

Re: Automatic chmod

2009-10-09 Thread Victor Subervi
''' print print content.encode('base64') TIA, V On Fri, Oct 9, 2009 at 10:14 AM, Richard Mahlerwein mahle...@yahoo.comwrote: From: Victor Subervi victorsube...@gmail.com Subject: Automatic chmod To: freebsd-questions@freebsd.org Date: Friday, October 9, 2009, 10:19 AM Hi; I have

Re: Automatic chmod

2009-10-09 Thread Richard Mahlerwein
From: Victor Subervi victorsube...@gmail.com 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; cgitb.enable() import