SPUG: add to default @INC

Brian Hatch spug at ifokr.org
Fri Jul 18 19:12:40 CDT 2003



> (perlwrapper would be cleaner if it had
>  quotes around "/usr/bin/perl" so it to compile :-)

(quite right, quite right.)

> One thing that perl does, that perl scripts can't do is act as an
> "#!" interpreter, and I needed my "wrapper" to behave like perl enough
> that it could be treated as an interpreter, so I could call it as you
> suggested with #!.  The only way to do this is with a C wrapper, since
> an script that uses an interpreter (like perl or my pktperl) can't be
> a script itself!
> 
> from man execve:
> 
>        execve() executes the  program  pointed  to  by  filename.
>        filename  must  be either a binary executable, or a script
>        starting with a line of the form "#!  interpreter  [arg]".
>        In  the latter case, the interpreter must be a valid path-
>        name for an executable which is not itself a script, which
>        will be invoked as interpreter [arg] filename.

Ok, next time I'll actually try my code.   I'll blame it on
having sick child at home and trying to be witty online at
the same time.  ;-)


--
Brian Hatch                  "I'm thinking .. pastels!"
   Systems and
   Security Engineer
http://www.ifokr.org/bri/

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030718/53a5adb1/attachment.bin


More information about the spug-list mailing list