Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can the shell (command line) display GUI generated commands?

Example:

  1. Go to: Applications => Programming => Netbeans

  2. When Netbeans starts I want to see in shell $ netbeans / gksu netbeans

  3. (Edit) When I doing with netbeans svn update I want to see this in shell

Edit: Netbeans only example

Thanks

share|improve this question
    
What would you like to do? Run a script when an application is started? –  Lekensteyn Mar 21 '11 at 12:53
add comment

2 Answers 2

You can configure the Netbeans menu item run netbeans in a visible terminal window:

  1. Right-click the Applications menu and then click Edit Menus.
  2. On the Programming menu, select Netbeans and then click Properties.
  3. Change the Type to Application in Terminal and then click Close.

It might take a minute for the menu to be updated with the new settings. If you're impatient, try running killall gnome-panel to force a reload.

Tip: To make the terminal window stay open after Netbeans has closed, use the menu editor again to change the Netbeans menu item's command from netbeans to sh -c 'netbeans ; bash'.

share|improve this answer
add comment

You can also use top or htop to display running services. You can do a search for netbeans in there?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.