Double click program to run in new console window - halp :)

Hey guys.

I have several servers running on my Ubuntu 10.10 machine but occasionally I need to check the status of them which takes ages because the commands are rather long.

So I wrote a c++ program that simply sends the commands to check the status of all my servers to the console using system() and the program works fine if I execute it from within a console.

For ease of use I would like to change it so that when you double click the binary file it opens a new console window and displays the output of the program. Currently nothing happens if I double click the program so is there any way I can change it so it works as described? :)

regards, aatwo.
You should use a shell script for that, not a c++ program
Thanks for the reply. I shall investigate (never written a shell script before)!
Topic archived. No new replies allowed.