#!/bin/ksh # Embed_C.sh > /tmp/cscript.c > /tmp/cscript echo "Create a C script..." echo '/* Embed a C script and compile on the fly. */ #include main() { printf("Hello, AMIGA ADE UNIX World...\n"); }' > /tmp/cscript.c cd /tmp echo "Compile this new C script as the default a.out..." gcc cscript.c mv a.out cscript echo "Rename and ensure it is executable..." chmod 755 cscript echo "Now call it..." echo "" ./cscript echo "" echo "Done!..." exit 0