Gentoo Archives: gentoo-user

From: Greg Lindstrom <gslindstrom@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Running Scripts
Date: Fri, 27 Jul 2007 18:18:51
Message-Id: a9f39a410707271113i683ab803va2f1dee843b6eb74@mail.gmail.com
In Reply to: Re: [gentoo-user] Running Scripts by Uwe Thiem
1 Wow! Thanks for the help. See my comments below pertaining to individual
2 remarks.
3 --greg
4
5 Alex asked:
6
7 > is is possible that you saved the text file in DOS format, with CR-LF
8 > endings instead of LF only?
9 >
10 > If "od -t x2 hello.py" shows 0a0d sequences, this is the case. You could
11 > use dos2unix to convert.
12 >
13
14 $ od -t x2 hello.py
15 0000000 2123 752f 7273 622f 6e69 652f 766e 7020
16 0000020 7479 6f68 0a6e 7270 6e69 2074 6827 6c65
17 0000040 6f6c 202c 6f77 6c72 2764 000a
18 0000053
19
20 Nope. That looks good.
21
22 Boyd Wrote:
23
24 which env
25 >
26 > ls -l /usr/bin/env
27 > ls -l /usr/bin/python
28
29
30 I'm not sure what you are asking here.
31
32 $ ls -l /usr/bin/env
33 lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env -> /bin/env
34
35 $ ls -l /usr/bin/python
36 lrwxrwxrwx 1 root root 9 May 18 2006 /usr/bin/python -> python2.4
37
38
39 Uwe Thiem <uwix@××××.na> wrote:
40 >
41 > This leads to the question whether you can start *any* executable from
42 > your
43 > home directory (assuming you stored your script somewhere under your home
44 > directory). If not so, do you mount your /home partition with the "noexec"
45 > option?
46
47
48 I have the same problem with Perl scripts; I haven't tried any others. Is
49 there a way to tell how the partition is mounted? I'm sorry to say that I
50 am a lowly user on the system and don't really know much about how it is set
51 up.
52
53 Thank-you so much for your attention. This is a small problem, as I can run
54 the scripts with python (or perl) then the filename. I'd just like to
55 understand what's happening.
56
57 --greg

Replies

Subject Author
Re: [gentoo-user] Running Scripts Uwe Thiem <uwix@××××.na>
Re: [gentoo-user] Running Scripts Kent Fredric <kentfredric@×××××.com>
Re: [gentoo-user] Running Scripts David Relson <relson@×××××××××××××.com>