bash script to compile and run program