1 |
On 7/28/07, Greg Lindstrom <gslindstrom@×××××.com> wrote: |
2 |
> Wow! Thanks for the help. See my comments below pertaining to individual |
3 |
> remarks. |
4 |
> --greg |
5 |
> |
6 |
> Alex asked: |
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 |
> I'm not sure what you are asking here. |
30 |
> |
31 |
> $ ls -l /usr/bin/env |
32 |
> lrwxrwxrwx 1 root root 8 May 18 2006 /usr/bin/env -> /bin/env |
33 |
> |
34 |
> $ ls -l /usr/bin/python |
35 |
> lrwxrwxrwx 1 root root 9 May 18 2006 /usr/bin/python -> python2.4 |
36 |
> |
37 |
> |
38 |
> Uwe Thiem < uwix@××××.na> wrote: |
39 |
> > This leads to the question whether you can start *any* executable from |
40 |
> your |
41 |
> > home directory (assuming you stored your script somewhere under your home |
42 |
> > directory). If not so, do you mount your /home partition with the "noexec" |
43 |
> > option? |
44 |
> |
45 |
> I have the same problem with Perl scripts; I haven't tried any others. Is |
46 |
> there a way to tell how the partition is mounted? I'm sorry to say that I |
47 |
> am a lowly user on the system and don't really know much about how it is set |
48 |
> up. |
49 |
> |
50 |
> Thank-you so much for your attention. This is a small problem, as I can run |
51 |
> the scripts with python (or perl) then the filename. I'd just like to |
52 |
> understand what's happening. |
53 |
> |
54 |
> --greg |
55 |
> |
56 |
> |
57 |
|
58 |
|
59 |
try a plain old bash script and see if that works, and try this and |
60 |
see if it works: |
61 |
|
62 |
cat >> testrun.c |
63 |
#include <stdio.h> |
64 |
int main(int argc, int* argv) |
65 |
{ |
66 |
printf("helloworld"); |
67 |
} |
68 |
( press ctrl+d here ) |
69 |
|
70 |
make testrun |
71 |
|
72 |
./testrun |
73 |
|
74 |
if that fails to do ./testrun, then i figgure the FS your on isn't |
75 |
execable. sorry. ^^ |
76 |
|
77 |
|
78 |
|
79 |
|
80 |
-- |
81 |
Kent |
82 |
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x| |
83 |
print "enNOSPicAMreil kdrtf@×××.com"[(2*x)..(2*x+1)]}' |
84 |
-- |
85 |
gentoo-user@g.o mailing list |