Find the answer to your Linux question:
Results 1 to 7 of 7
I made a shell script. I can start it in the console via >./filename<. But I want it to start when a User clicks on the file in KDE (just ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    20

    How to execute a shell script in KDE?


    I made a shell script. I can start it in the console via >./filename<.
    But I want it to start when a User clicks on the file in KDE (just like a windows batch file).
    Please tell me what to do.

    Best regards,
    Lothar

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    I believe you can right-click the file and select "Run in terminal"

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    20
    Quote Originally Posted by lakerdonald
    I believe you can right-click the file and select "Run in terminal"
    That does not work. Anyway, I'm looking for a way to execute the file via a single click. Maybe I can compile it somehow?

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    You cannot compile a shell script....
    Make sure that the eXecutable permission is set.

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Posts
    20
    Quote Originally Posted by lakerdonald
    You cannot compile a shell script....
    Make sure that the eXecutable permission is set.
    It is set, I can execute the script in the terminal. Al i'd like to to is execute it with a single mouseclick in KDE.

  6. #6
    Linux Newbie
    Join Date
    Sep 2005
    Location
    Wahiawa, Hawaii
    Posts
    125

    Running a Script from KDE

    Aloha,
    Step 1. Write a script that does the job desired.
    Step 2. Save it and remember it's location.
    Step 3. On the KDE desktop create a link to application.
    Step 4. Under application name, browse to your script and select it.

    Now when you click on the Icon that is created, which can be changed, it will launch your script. Note that it will not give any feedback in a terminal window unless you set it to do that.
    Mahalo,
    Edward
    GNU/Linux is a powerful Free OS. Fear is a powerful motivator. Freedom is sweet. Fear GNU/Linux. Savor Freedom.

  7. #7
    Just Joined!
    Join Date
    Nov 2005
    Posts
    20
    That's it. Thanks!

Posting Permissions

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