[plug] Running a script to parse a script with args

Trevor Phillips T.Phillips at murdoch.edu.au
Thu Aug 28 22:55:30 WST 2003


Bernard Blackham wrote:
>
> Why don't you put "#!/usr/bin/perl" at the top of your perl script
> and chmod +x it.

I have. Which is fine for manual runs...

> And then in your data file, use "#!/my/perl/script some args" on the
> first line? (and of course tell your perl script to discard the
> first line).

This, being the obvious, is what I tried first - but it didn't work. 
Then again, that was several weeks ago - maybe I stuffed up something 
obvious and should go back and try it again. ^_^

-- 
. Trevor Phillips             -           http://jurai.murdoch.edu.au/ .
: Web Technical Administrator     -          T.Phillips at murdoch.edu.au :
| IT Services                        -              Murdoch University |
  >--------------------------------------------------------------------<
| On nights such as this, evil deeds are done. And good deeds, of     /
| course. But mostly evil, on the whole.                             /
  \      -- (Terry Pratchett, Wyrd Sisters)                          /



More information about the plug mailing list