I code, compile, and run a lot of test scripts through terminal using gcc and find myself typing something like the following a lot:
And, assuming everything compiles correctly...
Is there a way I can make a little program that sits on my desktop that runs all of this through the terminal with one click?
I'm hoping it's something easy like a batch file that I can just make with a few lines in notepad.
Code:
cd /users/me/desktop
gcc test.c
And, assuming everything compiles correctly...
Code:
./a.out
Is there a way I can make a little program that sits on my desktop that runs all of this through the terminal with one click?
I'm hoping it's something easy like a batch file that I can just make with a few lines in notepad.