I want to make a launcher for a c program I made and I want it to run in terminal. How would I do this? I don’t even have the slightest idea
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just create a text file, save it to the Desktop as e.g.
my_C_program.command(note the.commandsuffix), then in the text file you can put whatever terminal commands you like, e.g.Note: after saving the
.commandfile you need to make sure it is executable:This will give you a double-clickable icon on the desktop called
my_C_programthat runsmy_C_programvia the command line. (This assumesmy_C_programis somewhere in yourPATH).