Results 1 to 9 of 9

Thread: Program start in terminal

  1. #1
    Join Date
    Mar 2012
    Beans
    35

    Program start in terminal

    Hi, i been looking around the internet and don't know what it is called wondered if anybody can give me advice on where to go tutorial or anything be grateful.

    1. I have a menu on my Ubuntu as shown below




    2. Now I want this program to automatically run in terminal by the menu, but when run it it doesn't load the program and don't understand why not, if can link to any tutorial or anything thanks


  2. #2
    Join Date
    Aug 2006
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Program start in terminal

    The command should look like this:
    Code:
    gnome-terminal -x sudo chkrootkit
    ..there is no need to spesify the full path.

    Alternatively -> http://ubuntuforums.org/showthread.php?t=1498339
    Last edited by mikewhatever; June 4th, 2012 at 09:22 PM.

  3. #3
    Join Date
    Mar 2012
    Beans
    35

    Re: Program start in terminal

    thanks very much i been looking for this everywhere over net, didnt know what it was called

  4. #4
    Join Date
    Mar 2012
    Beans
    35

    Re: Program start in terminal

    Quote Originally Posted by mikewhatever View Post
    The command should look like this:
    Code:
    gnome-terminal -e sudo chkrootkit
    ..there is no need to spesify the full path.

    Alternatively -> http://ubuntuforums.org/showthread.php?t=1498339
    just tried it an still not working

  5. #5
    Join Date
    Aug 2006
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Program start in terminal

    OK, I've got it. The command should be this
    Code:
    gnome-terminal -x sudo chkrootkit

  6. #6
    Join Date
    Mar 2012
    Beans
    35

    Re: Program start in terminal

    thanks very much it works yay! what are them type of commands called ?

  7. #7
    Join Date
    Mar 2006
    Beans
    1,426
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Program start in terminal

    shouln't there be
    gksudo instead of regular sudo in that command?

    the difference is that gksudo asks password graphically in a window, while sudo asks it in terminal (if terminal happens to be visible)
    _______________
    - anaconda

  8. #8
    Join Date
    Jul 2007
    Location
    Unknown
    Beans
    16,641
    Distro
    Ubuntu Development Release

    Re: Program start in terminal

    Quote Originally Posted by anaconda View Post
    shouln't there be
    gksudo instead of regular sudo in that command?

    the difference is that gksudo asks password graphically in a window, while sudo asks it in terminal (if terminal happens to be visible)
    chkrootkit is a shell script so sudo is fine.

  9. #9
    Join Date
    Mar 2012
    Beans
    35

    Re: Program start in terminal

    thank you for help very much appreciated

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •