Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: CLI running .sh file

  1. #11
    Join Date
    Aug 2007
    Location
    Hull, East Yorkshire, UK
    Beans
    302
    Distro
    Xubuntu Development Release

    Re: CLI running .sh file

    Quote Originally Posted by squee View Post
    Command field: sh ~/JSMS/JSMS.sh
    try just ~/JSMS/JSMS.sh in the Command field
    Sony Vaio VGN-NS11J Laptop 2x Intel(R) Core(TM)2 Duo CPU T5800 @ 2.00GHz, 3 GB RAM, 320GB HD. My Linux Blog and My Folding@Home Stats

  2. #12
    Join Date
    Jul 2006
    Location
    Omnipresent
    Beans
    143
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: CLI running .sh file

    try just ~/JSMS/JSMS.sh in the Command field
    Cant believe this. Doesnt work: "Details: Failed to execute child process "~/JSMS/JSMS.sh" (No such file or directory)"

    but it clearly exists. I'm looking at it!

    Path is definately Home/USER/JSMS/JSMS.sh
    Laptop: Toshiba T130 1.3 GHz U2700 320GbHDD -- Things not working on 12.10: Screen dimming (works only on CLI sudo setpci -s 00:02.0 F4.B=90). Contact me with solutions please!

  3. #13
    Join Date
    Aug 2008
    Location
    London, UK
    Beans
    105
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CLI running .sh file

    Try to give it the fully qualified path instead: /home/USER/JSMS/JSMS.sh

  4. #14
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: CLI running .sh file

    Try the absolute path then.

    Code:
    /home/USER/JSMS/JSMS.sh
    Also, probably a good idea to change

    Code:
    #!/bin/sh
    to
    Code:
    #!/bin/bash
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  5. #15
    Join Date
    Sep 2007
    Location
    Masschusetts
    Beans
    1,510
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: CLI running .sh file

    Quote Originally Posted by squee View Post
    If I type: cd JSMS then sh JSMS.sh it works, but if I type cd JSMS | sh JSMS.sh it doesnt work.

    Any ideas? thanks guys.
    because you don't want a pipe, you want a logical and.

    cd JSMS && ./JSMS.sh
    Registered Linux User: 482377
    MacBook (1,1) - OS X Leopard
    ASUS P5LD2 - Core 2 Duo 3.0GHz - 2GB Corsair RAM - Nvidia 8800GT - Ubuntu 9.04 / Windows 7 Professional

  6. #16
    Join Date
    Jul 2006
    Location
    Omnipresent
    Beans
    143
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: CLI running .sh file

    Quote Originally Posted by taurus View Post
    Try the absolute path then.

    Code:
    /home/USER/JSMS/JSMS.sh
    Also, probably a good idea to change

    Code:
    #!/bin/sh
    to
    Code:
    #!/bin/bash

    Done. Still not working. I've had enough for tonight need sleep. Thanks for all the help guys. Atleast I know what I should be doing now.
    Laptop: Toshiba T130 1.3 GHz U2700 320GbHDD -- Things not working on 12.10: Screen dimming (works only on CLI sudo setpci -s 00:02.0 F4.B=90). Contact me with solutions please!

Page 2 of 2 FirstFirst 12

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
  •