Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: .sh launcher

  1. #1
    Join Date
    Nov 2009
    Location
    Kentucky
    Beans
    220
    Distro
    Xubuntu

    Question .sh launcher

    Hello I am trying to make a Launcher to a .sh file and can't get it to work i have tried everything mentioned on these threads

    http://ubuntuforums.org/showthread.php?t=427944

    http://ubuntuforums.org/showthread.php?t=397464

    and it still will not work it is loacated in /usr/bin/jython/jes-4-3-nojava/JES.sh

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: .sh launcher

    what have you typed in exactly in launcher properties? and what are the permissions of that file?

  3. #3
    Join Date
    Nov 2009
    Location
    Kentucky
    Beans
    220
    Distro
    Xubuntu

    Question Re: .sh launcher

    The permissions are set correctly I have it set to allow executing file as program checked and I typed in

    /usr/bin/jython/jes-4-3-nojava/JES.sh

    sh /usr/bin/jython/jes-4-3-nojava/JES.sh

    sudo sh /usr/bin/jython/jes-4-3-nojava/JES.sh

    and i have made it an application and application in terminal

  4. #4
    Join Date
    Apr 2009
    Location
    Midwest, U.S.A.
    Beans
    1,209
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: .sh launcher

    Post the script file, maybe something is amiss with the code.
    Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
    Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
    Linux User: 498249 / Ubuntu User: 29241

  5. #5
    Join Date
    Jun 2010
    Beans
    39
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: .sh launcher

    Did you do

    Code:
    sudo chmod +x /usr/bin/jython/jes-4-3-nojava/JES.sh

  6. #6
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: .sh launcher

    i assume it works normally from terminal?
    what does ls -l /usr/bin/jython/jes-4-3-nojava/JES.sh say?


    and what about
    sh -c "/usr/bin/jython/jes-4-3-nojava; ./JES.sh"
    crazy idea but who knows

  7. #7
    Join Date
    May 2010
    Beans
    171

    Re: .sh launcher

    Quote Originally Posted by AlphaLexman View Post
    Post the script file, maybe something is amiss with the code.
    Could you also clarify if it works via the terminal, or is it just not working via the GUI?

    You may need to run it using
    Code:
    bash /usr/bin/jython/jes-4-3-nojava/JES.sh

  8. #8
    Join Date
    Nov 2009
    Location
    Kentucky
    Beans
    220
    Distro
    Xubuntu

    Re: .sh launcher

    Hello everyone I can run the program by going to the directory threw the terminal

    cd /usr/bin/jython/jes-4-3-nojava

    then

    ./JES.sh

    I can also go to the file and double click on it and it works

    the output of ls -l /usr/bin/jython/jes-4-3-nojava/JES.sh is

    -rwxr-xr-x 1 william william 372 2009-12-16 15:16 /usr/bin/Jython/jes-4-3-nojava/JES.sh

    I also tried sh -c "/usr/bin/jython/jes-4-3-nojava; ./JES.sh" and nothing

    Thanks for helping

  9. #9
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: .sh launcher

    sh.t, i made an error
    sh -c "cd /usr/bin/jython/jes-4-3-nojava; ./JES.sh"

    this is a single command that does these 2 working steps - cd dir, execute script
    Last edited by Vaphell; August 27th, 2010 at 02:14 AM.

  10. #10
    Join Date
    Nov 2009
    Location
    Kentucky
    Beans
    220
    Distro
    Xubuntu

    Re: .sh launcher

    Quote Originally Posted by Vaphell View Post
    sh.t, i made an error
    sh -c "cd /usr/bin/jython/jes-4-3-nojava; ./JES.sh"

    this is a single command that does these 2 working steps - cd dir, execute script
    Your a freaking genius man! works great.

    Okay now do you know if i can make the launcher into an icon that i want or a picture or something I am using 10.04

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •