bash - How do I attach a wrapper script to a binary? -
i have executable a.out. want attach wrapper script executable few things , calls a.out. however, have 1 file can distribute instead of 2 files. suggestions on how this?
i'm not terribly concerned portability. solution uses bash, perl or python preferred scripting language do.
you can append a.out wrapper script (after exit
in bash or __end__
in perl), extract new file, change permissions , run it.
Comments
Post a Comment