Results 1 to 3 of 3

Thread: desktop shortcut that runs code in terminal?

  1. #1
    Join Date
    Mar 2012
    Beans
    82

    desktop shortcut that runs code in terminal?

    I'd like to have an icon on my desktop that when clicked (or run in terminal) will run the code in the textfile w/ Terminal. Does anyone know how to do this? I thought it'd be as simple as making a simple text file and then running it in Terminal but that didn't work.

  2. #2
    Join Date
    Feb 2013
    Beans
    28

    Re: desktop shortcut that runs code in terminal?

    put your codes in a text file and put '.sh' at the end of the name of your file like MYTEXT.sh
    when you double click on it a prompt page will com that ask you to display it or run it in terminal . choos run in terminal.

    if you want to run your cod in terminal give your file execution permission an to run it give its address in terminal .

  3. #3
    Join Date
    Mar 2012
    Beans
    82

    Re: desktop shortcut that runs code in terminal?

    nm. worked for me. i changed the permissions to executable in its properties initially but for whatever reason the settings weren't saved
    Last edited by lightsaberlesbian; February 20th, 2013 at 02:26 AM.

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
  •