lkml.org 
[lkml]   [2006]   [May]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 13 May 2006 13:16:47 +0200
From"J.A. Magallón" <>
SubjectRe: Executable shell scripts
On Sat, 13 May 2006 13:03:24 +0200 (CEST), Mark Rosenstand <mark@borkware.net> wrote:

> Arjan van de Ven <arjan@infradead.org> wrote:
> > On Sat, 2006-05-13 at 12:38 +0200, Mark Rosenstand wrote:
> > > Hi,
> > > 
> > > Is it in any (reasonable) way possible to make Linux support executable
> > > shell scripts? Perhaps through binfmt_misc?
> > 
> > ehhhhhh this is already supposed to work.
> 
> It doesn't:
> 
> bash-3.00$ cat << EOF > test
> > #!/bin/sh
> > echo "yay, I'm executing!"
> > EOF
> bash-3.00$ chmod 111 test

So you could execute the script if you ever could read it :)
Try with 755...

--
J.A. Magallon <jamagallon()ono!com>     \               Software is like sex:
                                         \         It's better when it's free
Mandriva Linux release 2006.1 (Cooker) for i586
Linux 2.6.16-jam11 (gcc 4.1.1 20060330 (prerelease)) #2 SMP PREEMPT Fri
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-13 13:21    [from the cache]
©2003-2008