cscript - run c programs as scripts

With this little program you can run c programs like they were scripts!

Compile the program with gcc -O6 -Wall -o cscript cscript.c and copy it to /usr/local/bin.

Now just put #!/usr/local/bin/cscript at the top of a c source file, make it executable, and you're all set. When you run the program, cscript compiles the file to a temporary file and runs it. When the program exits, the temporary file is deleted automatically.