#!/bin/sh cat <<-ENDOFMESSAGE>clouseau_start #!/bin/sh if [ \$# -lt 1 ] then echo "Usage: clouseau_start [executable parameters]" else LD_PRELOAD="$1/libclouseau_preload.so" "\$@" fi ENDOFMESSAGE cat <<-ENDOFMESSAGE>clouseau #!/bin/sh clouseau_client & if [ \$# -gt 0 ] then # Start clouseau daemon (will start single instance), then run app clouseau_start "\$@" fi ENDOFMESSAGE chmod +x clouseau chmod +x clouseau_start