3

I have recently changed my OS from Ubuntu 11.04 to Kubuntu 10.04 but don't know how to get my executable bash scripts to run on Kubuntu. On Ubuntu all I did was click on the text file and I was given the options to run, run in terminal, display etc. but when I click on the file in Kate on Kubuntu these options don't appear. Permissions on the file are set to executable, but how do I get the script to actually execute? Typical contents of the files are

#!/bin/bash
's/^\(.\{4\}\)\(.\{2\}\)/\1,\2,/g' ~/Documents/DataOnly/AD70000$.TXT > ~/Documents/octave/auscad
exit 
4
  • What happens if you click on it? I believe that KDE will open the script without asking if the file is set to executable. Do you get a text editor instead? Oct 21, 2011 at 0:49
  • A left mouse click opens the file, a right click gives a dialogue box with options to cut, copy, rename, move to waste, open with, actions, compress and properties. Open with gives the options of Kate or Open Office, actions leads to preview or create project with K3b, compress gives options for zip, rar etc. Nowhere is there an option to run. Oct 21, 2011 at 1:00
  • Duh! Stupid me. The window decoration style I have opted for made the radio style button to toggle between executable/non-executable difficult to see what option is selected. Problem now solved. Oct 21, 2011 at 1:23
  • 3
    @babelproofreader Preferably you should post that as an answer and accept it. Oct 21, 2011 at 1:29

2 Answers 2

5

Originally posted by babelproofreader:

Duh! Stupid me. The window decoration style I have opted for made the radio style button to toggle between executable/non-executable difficult to see what option is selected. Problem now solved.

1
  • I'm posting the answer given in the comments so that this question will no longer show up as unanswered. Dec 18, 2011 at 13:05
0
chmod +x [script name]
./[script name]
1
  • 4
    It would be more helpful if you would add a bit more information on what those commands do. Feb 6, 2012 at 21:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .