Find the answer to your Linux question:
Results 1 to 5 of 5
This ****ing problem is keeping me busy since last 7hrs. I have looked thru all the manuals and searched thru web, but no luck. All I want to do is ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3

    shortcut to shell script

    This ****ing problem is keeping me busy since last 7hrs. I have looked thru all the manuals and searched thru web, but no luck. All I want to do is to create a desktop shortcut to my shell script "/mnt/work/scripts/net/connect" so that I can run it in konsole by double clicking on it. But seems that linux creators have tried everything under their sleeves to make sure that no user is able to do so by any chance

    any suggestions???

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    Make sure your shell script is executable by typing:

    Code:
    chmod a+x /path/to/your/script
    Then right click on your desk top, choose "Create New" and select "Link to application" Fill in the details to your script. Alternatively cd to your desktopand create a softlink by typing::

    Code:
    cd ~/Desktop
    ln -s /path/to/your/script

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3
    sorry dude, this only opens the script with KATE. I wan to RUN it in TERMINAL plz.......

  4. #4
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    Did you preform the chmod command on your script to make it exectable and was it successful?

  5. #5
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    If you're running KDE, you can just 'right click', new/shortcut_to_application/TAB-application/advanced

    Check the box 'run in terminal', give it a name and fill in the /path/command, find a nice icon, click OK and you're done.
    Can't tell an OS by it's GUI

Posting Permissions

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