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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -