Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-25-2008, 05:25 PM   #1
LQ Newbie
Registered: May 2008
Location: Kensington, Maryland
Distribution: Ubuntu 8.04
Posts: 1

Rep: Reputation: 0
Which program should I use to execute a shell script In Ubuntu 8.04 64-bit?

When I highlight a shell script file and right-click on it, I am given the option to "open with". What (which) program should I choose?

When I use the terminal, this is what I get when I try to run the install-sh script. I get similar responses when I run ksh and csh.

dad@localhost:~/Desktop/Audacious/audacious-1.5.1$ chmod install-sh
chmod: missing operand after `install-sh'
Try `chmod --help' for more information.

Typing `chmod --help' doesn't help me at all because I simply don't understand the "help" information.

I come from the old DOS world, so using a command line and switches is not a problem for me - unless I am not familiar with the syntax and the switches.

I am using Ubuntu 64-bit with KDE installed and running nicely.
Old 05-25-2008, 05:50 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
The open with option in Linux is similar to the open with option in Windoze. Select any text editor you have installed. I suspect Kubuntu's default text editor is Kate, but I don't really know. There may be several text editors installed to select from. Just poke around the menu and look for them. They are probably installed in /usr/bin if you need to enter a path.

Unless install-sh is in a directory that is in your $PATH, then you execute it thusly
Where the ./ indicates the directory you are currently "in." To see what is in your PATH variable execute in your console
echo $PATH
However, it looks like you've downloaded the source code for Audacious. In that case you should install Audacious from the Kubuntu repositories rather than from source. If you insist on building from source, you'll need to do something such as
CC="gcc -m64" CXX="g++ -m64" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make && sudo make install
Once again, however, you should use the Kubuntu repositories.

To see the manual page for chmod, which is more detailed than the help, try executing in your console
man chmod

Last edited by weibullguy; 05-25-2008 at 05:51 PM.
Old 05-26-2008, 05:19 AM   #3
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
dad@localhost:~/Desktop/Audacious/audacious-1.5.1$ chmod install-sh
chmod: missing operand after `install-sh'
OK, you use chmod but without specifying which permissions you want to modify, there is your problem. I won't go into the details here as there are too many but, for your purposes, I suppose you can just

chmod +x install-sh
Note the +x: it means that you want to add execute permissions. As an alternative, you should be able to do this instead:

bash install-sh

Last edited by jay73; 05-26-2008 at 05:21 AM.
Old 05-26-2008, 09:13 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Overlapping previous replies, but with different emphasis:

"Open with" in the GUI is for running files, not programs. To run a executable, you simply click on the link. Shell scripts are normally, however, run from a terminal and act just like any other executable---ie you simply enter the name. If the executable program (shell script, etc.) is not listed in $PATH, then you need to specify the full path. "./programname" is shorthand for "currentdirectory/programname"

Typing `chmod --help' doesn't help me at all because I simply don't understand the "help" information.
Take the time to understand it....You can also enter "man chmod" for the man (manual) page. Tell us specifically which part you don't understand.
Old 05-26-2008, 11:29 AM   #5
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Why not install the Ubuntu Hardy package ?? It is here:
so it is probably in your repo too, try 'synaptic'
or 'sudo apt-get install audacious'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute shell through C program pawarsac Linux - Software 2 07-22-2006 05:23 AM
make c-program that accepts shell commands and execute them boeroe Programming 4 02-18-2005 09:41 AM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 02:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 05:20 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration