[gentoo-user] Running Scripts

2007-07-27 Thread Greg Lindstrom
Hello- I am programming Python (2.4.1) scripts to run on our Gentoo boxes and am having a bit of trouble I was hoping you could help me with. My file, hello.py looks like this: #!/usr/bin/python print 'hello, python' I add execute permission to the file and try to run it as follows: myprompt

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Greg Lindstrom
Wow! Thanks for the help. See my comments below pertaining to individual remarks. --greg Alex asked: is is possible that you saved the text file in DOS format, with CR-LF endings instead of LF only? If od -t x2 hello.py shows 0a0d sequences, this is the case. You could use dos2unix to

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Greg Lindstrom
On 7/27/07, Uwe Thiem [EMAIL PROTECTED] wrote: Post the content of your /etc/fstab. You should be able to do that as a normal user. Nope. I am denied access to /etc/fstab. Could this be (part of) the problem? --greg

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Greg Lindstrom
Eric Martin: what does ls -l /etc/fstab show? $ ls -l /etc/fstab -rw-r- 1 root root 1434 Nov 29 2006 /etc/fstab Florian Phillip: Please post the output of cat /etc/group | grep $username Returns nothing. When I substitute my username (glindstrom) in it also returns nothing. Arthuro

[gentoo-user] Moving a file using Python and Cron

2007-09-07 Thread Greg Lindstrom
I have a python (2.4) routine running on Gentoo Linux. It creates a file and, after the file is complete, renames the file using Python's os.rename() command. When I run the file from the command line everything works great, but when I schedule the job to run from the crontab file, the original