I'm writing a shell script for I can launch a program from the terminal using ./AppName but how can i get the return value either 0 or 1 to determine if the program executed correctly
on 03/05/2010 – Made popular on 03/05/2010
I am trying to write a shell script and at a point the script launches a c program and how do I make the script to wait till that program is executed before executing the subsequent steps. As of now my script is not waiting until the program is completely executed and this is causing only a part of it being executed before the script completes execution
I have a program that needs to be launched via a shell script (which sets up some necessary environment before the actual program is launched). So I created a .desktop file calling the shell script and added it to the launcher. So far, so good.
Now when click on the corresponding button in the launcher, the program is correctly executed but a second button is created in the launcher.