LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-25-2008, 04:25 PM   #1
joel.breger
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, 04:50 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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
Code:
./install-sh
Where the ./ indicates the directory you are currently "in." To see what is in your PATH variable execute in your console
Code:
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
Code:
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
Code:
man chmod

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

Rep: Reputation: 133Reputation: 133
Quote:
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

Quote:
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:

Quote:
bash install-sh

Last edited by jay73; 05-26-2008 at 04:21 AM.
 
Old 05-26-2008, 08:13 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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"

Quote:
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, 10:29 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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


Reply


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 04:23 AM
make c-program that accepts shell commands and execute them boeroe Programming 4 02-18-2005 08:41 AM
shell script won't execute brandnewbie Linux - Newbie 7 08-10-2004 01:30 PM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:15 AM.

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