Re: [gentoo-user] Running Scripts

2007-07-29 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 As another alternative, you could try re-emerging the coreutils package. Also, check your $PATH. It should include /bin and /usr/bin quite at the beginning. - -- Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica SHOW DE F

Re: [gentoo-user] Running Scripts

2007-07-29 Thread Uwe Thiem
On 29 July 2007, David Relson wrote: > On Fri, 27 Jul 2007 13:13:08 -0500 > Greg Lindstrom wrote: > > ..[snip]... > > > I'm not sure what you are asking here. > > > > $ ls -l /usr/bin/env > > lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env -> /bin/env > > > > $ ls -l /usr/bin/python > > lrwxrwxr

Re: [gentoo-user] Running Scripts

2007-07-29 Thread David Relson
On Fri, 27 Jul 2007 13:13:08 -0500 Greg Lindstrom wrote: ..[snip]... > I'm not sure what you are asking here. > > $ ls -l /usr/bin/env > lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env -> /bin/env > > $ ls -l /usr/bin/python > lrwxrwxrwx 1 root root 9 May 18 2006 /usr/bin/python -> python2.

Re: [gentoo-user] Running Scripts

2007-07-29 Thread Alex Schuster
Uwe Thiem writes: > I am out of ideas - and still a bit puzzled how /usr/bin/env got > involved (see original post). According to the od output, the first line is not "#!/usr/bin/python", but "#!/usr/bin/env python". But that seems to work well for me, too. I'd try to put the script onto seve

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Uwe Thiem wrote: > I am out of ideas - and still a bit puzzled how /usr/bin/env got involved (see > original post). Heh, if we had enough trust, I'd remote login to the server and see what's wrong by myself :) - -- Arturo "Buanzo" Busleiman - Con

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Uwe Thiem wrote: > Without writing a Makefile, make won't build the program. ;-) Actually, yes. If you have a file called something.c you can simply run: "make something" and it will compile something.c, link something.o and produce a binary name

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Boyd Stephen Smith Jr.
On Saturday 28 July 2007, "Kent Fredric" <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] Running Scripts': > On 7/29/07, Uwe Thiem <[EMAIL PROTECTED]> wrote: > > On 28 July 2007, Kent Fredric wrote: > > > try a plain old bash script and see if

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Kent Fredric
On 7/29/07, Uwe Thiem <[EMAIL PROTECTED]> wrote: > On 28 July 2007, Kent Fredric wrote: > > > try a plain old bash script and see if that works, and try this and > > see if it works: > > > > cat >> testrun.c > > #include > > int main(int argc, int* argv) > > { > > printf("helloworld"); > > } > >

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Uwe Thiem
On 28 July 2007, Greg Lindstrom wrote: > $ mount > /dev/sda2 on / type ext3 (rw,noatime,acl) > proc on /proc type proc (rw) > sysfs on /sys type sysfs (rw) > udev on /dev type tmpfs (rw,nosuid) > devpts on /dev/pts type devpts (rw) > /dev/sda5 on /var type ext3 (rw,nodev,noatime) > /dev/sda6 on /u

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Uwe Thiem
On 28 July 2007, Kent Fredric wrote: > try a plain old bash script and see if that works, and try this and > see if it works: > > cat >> testrun.c > #include > int main(int argc, int* argv) > { > printf("helloworld"); > } > ( press ctrl+d here ) > > make testrun Without writing a Makefile, mak

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

Re: [gentoo-user] Running Scripts

2007-07-28 Thread Kent Fredric
On 7/28/07, Greg Lindstrom <[EMAIL PROTECTED]> wrote: > 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

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Dirk Heinrichs
Am Freitag, 27. Juli 2007 schrieb Florian Philipp: > Please post the output of > > cat /etc/group | grep $username Or just: id Bye... Dirk signature.asc Description: This is a digitally signed message part.

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Greg Lindstrom wrote: > Nope. I am denied access to /etc/fstab. Could this be (part of) the > problem? Try sending us the output of the "mount" command. - -- Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica SHOW DE FUT

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Florian Philipp
Am Freitag 27 Juli 2007 21:04 schrieb 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 Pleas

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Eric Martin
what does ls -l /etc/fstab show? On 7/27/07, Greg Lindstrom <[EMAIL PROTECTED]> wrote: > > > > 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 th

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-27 Thread Uwe Thiem
On 27 July 2007, Greg Lindstrom wrote: > Uwe Thiem <[EMAIL PROTECTED]> wrote: > > This leads to the question whether you can start *any* executable from > > your > > home directory (assuming you stored your script somewhere under your home > > directory). If not so, do you mount your /home partitio

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

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Uwe Thiem
On 27 July 2007, Greg Lindstrom wrote: > 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 permissi

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Boyd Stephen Smith Jr.
On Friday 27 July 2007, "Greg Lindstrom" <[EMAIL PROTECTED]> wrote about '[gentoo-user] Running Scripts': > -bash: ./hello.py: /usr/bin/env: bad interpreter: Permission denied > running /usr/bin/python brings up the python shell, so that's in place. which e

Re: [gentoo-user] Running Scripts

2007-07-27 Thread Alex Schuster
Greg Lindstrom writes: > 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

[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 $