Technology Insights

Launch Terminal Window & Run A Command From Gnome Menu Item

Tonight I was working on creating some some listeners that run automatically on boot in Ubuntu. Not only should they run automatically but there should be scripts to start, stop, and watch the status of the listeners for incoming traffic. I also decided to add the items to the Ubuntu Applications menu and thought it would be neat if when the menu item was selected that it automatically launched a terminal window and ran the command automatically. Turns out that doing exactly that is really easy as explained below.