Find the answer to your Linux question:
Results 1 to 6 of 6
I am trying to create a symbolic link on my desktop to a script that launches a program. I can launch the program fine from the application's directory by doing ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    5

    desktop shortcut to .sh script

    I am trying to create a symbolic link on my desktop to a script that launches a program. I can launch the program fine from the application's directory by doing a ./client.sh. Permissions are set to 755. When I create the link, I switch to the desktop directory and type in the following command:

    ln -s /opt/SecureComputing/SmartFilterAdministration/client/client.sh

    It creates the link successfully. When I try to run it I am prompted to "Run in Terminal", "Display", "Cancel", or "Run". No matter which one I choose the script does not execute. I don't get any error messages. Just nothing happens.
    Anyone have any clues on this one?

  2. #2
    Linux User Dark_Stang's Avatar
    Join Date
    Jun 2006
    Location
    Around St. Louis
    Posts
    284
    Make a script on your desktop. Make it so all it does is run the other script.

    As to why the symbolic linking doesn't work... Is that script trying to run other scripts in the same directory or in folders?
    Two levels higher than a newb.
    (I can search google)

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    5
    Well, seeing as I don't know much about scripts or how to write them I couldn't tell you. I appreciate the pointer, looks like I have some research to do concerning scripting.

  4. #4
    Just Joined!
    Join Date
    Mar 2007
    Posts
    5
    Thanks so much Dark_Stang. That worked like a beauty and I gained some knowledge on how to write scripts.

  5. #5
    Linux User Dark_Stang's Avatar
    Join Date
    Jun 2006
    Location
    Around St. Louis
    Posts
    284
    No problem, glad I could help. Did you ever figure out why linking wouldn't work?
    Two levels higher than a newb.
    (I can search google)

  6. #6
    Just Joined!
    Join Date
    Mar 2007
    Posts
    5
    I never figured out why but it does look like the script in question runs other scripts in different directories. Does that matter?

Posting Permissions

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