In message <[EMAIL PROTECTED]>, Max
Erickson wrote:
> James <[EMAIL PROTECTED]> wrote:
>
>> So my question is: how does one change a file's permissions
>> inside of python?
>
> Assuming you want to operate on the output file:
>
> import os
> os.chmod(path, 755)
Shouldn't that be
os.chmod(p
James <[EMAIL PROTECTED]> wrote:
> --=_Part_63041_761240.1159752399799
> I'm writing a script in linux to excercise my python skills and
> have encountered a minor issue.
>
> Writing the script and creating an ouput file was simple enough
> and didn't take too long. However, I don't have permi
> This is an attribute of the file (an object in the filesystem) which
> is checked by the kernel before allowing the file to be
> executed. Python has nothing to do with this; if the attributes allow
> execution, you can execute it as a program; if not, you can't.
>
I took this to heart and chang
James <[EMAIL PROTECTED]> writes:
> I'm writing a script in linux to excercise my python skills and have
> encountered a minor issue. Writing the script and creating an ouput
> file was simple enough and didn't take too long. However, I don't
> have permissions to execute the file by default.
Th
I'm writing a script in linux to excercise my python skills and have encountered a minor issue.Writing the script and creating an ouput file was simple enough and didn't take too long. However, I don't have permissions to execute the file by default. Now, I could simply chmod 755 the sucker and hav