clouseau/src/scripts/gen_script.sh

28 lines
590 B
Bash
Executable File

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