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
I should have mentioned the import of the login works for other scripts, so that is not the issue. V On Fri, Oct 9, 2009 at 10:20 AM, Victor Subervi wrote: > User? I only have one user on this shared server. Here's the code: > > #!/usr/local/bin/python > import cgitb; cgitb.enable() > import MySQ

Re: Automatic chmod

2009-10-09 Thread Victor Subervi
User? I only have one user on this shared server. Here's the code: #!/usr/local/bin/python import cgitb; cgitb.enable() import MySQLdb import cgi import sys,os sys.path.append(os.getcwd()) from login import login user, passwd, db, host = login() form = cgi.FieldStorage() picid = int(form['id'].val

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 execute. Also, it >>appe

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 execute. Also, it >appears that'