No executables in /tmp

Von Fugal von at fugal.net
Wed Apr 5 11:08:18 MDT 2006


* justin gedge [Tue, 28 Mar 2006 at 09:32 -0700]
> I know the #!/usr/bin/perl along w/ an executable file tells UNIX that 
> you need to run the /usr/bin/perl executable- is everything else in the 
> script passed to perl through STDIN, it can't be- there has to be some 
> other mechanism-

Basically, the shell sees the #! and turns around and executes:
<command after #!> <filename>
so a script called foo.pl with #! /usr/bin/perl would result in the
shell doing this:
/usr/bin/perl foo.pl

Von Fugal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20060405/841c16a2/attachment.bin 


More information about the PLUG mailing list