[plug] Running a script to parse a script with args
Trevor Phillips
T.Phillips at murdoch.edu.au
Thu Aug 28 17:27:51 WST 2003
Thanks all for the ideas. I wanted to do it without modifying my existing
script too much, and avoid multiple scripts, or aliases.
After some experimentation, I came up with an even hackier solution - which
works. ^_^
The start of my script now goes:
#!/bin/sh
/usr/bin/tail +4 $0 | /my/perl/script some args -
exit;
data
And it works great! (In a situation where it either does or doesn't work...)
--
. 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