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 03-07-2007, 06:55 AM   #1
ShadStar
Member
 
Registered: Feb 2007
Location: South West of the United Kingdom.
Distribution: Ubuntu 16.04.6 LTS (Xenial Xerus)
Posts: 36

Rep: Reputation: 15
friendly advice on compiling shell scripts


Hi guys,

Don't panic, I have sorted out my boot problems. I have actually learned quite a lot since my last posts, and have successfully set up SuSe to dual-boot and I am learning my way around the operating system. I even managed to install the video card driver and set up my monitor to work at the correct resolution... it took a while but I got there in the end (shows determination.)

However I am still VERY new to shell scripting, and I would like some pointers or recommendations as to how to go about compiling shell scripts.

For example I have downloaded the latest ivtv distro to try and get my pvr 350 tv card to work, and I have also downloaded the latest mythtv distro, however I have NO idea as to how to compile the ivtv distro and incorporate it into my system. It is not distributed as an rpm so I cannot use yast to install it, so at this point I am a bit stuck.

Any friendly advice at this point would be most welcome.

edit: Actually if somebody could point me in the right direction as to how the shell scripting actually works I think that maybe I could pick it up from there. I have no idea which directories are used or where things should go at the moment so please forgive...

Thanks guys

Last edited by ShadStar; 03-07-2007 at 07:03 AM.
 
Old 03-07-2007, 07:05 AM   #2
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
All shell scripts I have encountered can be run just by typing

sh XXX.sh

in the console, where XXX stands for some document name. However, if you want to make an executable from your script, you might try shc. Look at the man pages for it (or google it up).
 
Old 03-07-2007, 07:05 AM   #3
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
If you are looking for a tutorial on shell scripting, then just google it!
 
Old 03-07-2007, 07:11 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Your Shell is most probably bash.
type
Code:
man bash
for documentation about bash.
To install from source, read this :http://www.tuxfiles.org/linuxhelp/softinstall.html
 
Old 03-07-2007, 07:26 AM   #5
ShadStar
Member
 
Registered: Feb 2007
Location: South West of the United Kingdom.
Distribution: Ubuntu 16.04.6 LTS (Xenial Xerus)
Posts: 36

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks guys, I appreciate the quick replies.
Good point, it may be a bash script, but at the moment I can't tell the difference. However I will take all of your advice and get to googling as well as looking at the relevant man files. Methinks I should also find some good books on the subject as well...

I appreciate the support here, I don't like to be beaten and I am determined to learn all I can about Linux.

Cheers
 
Old 03-07-2007, 08:21 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
if you don't know the difference between shell and bash, read this :
http://www.tuxfiles.org/linuxhelp/cli.html
 
Old 03-07-2007, 10:22 AM   #7
ShadStar
Member
 
Registered: Feb 2007
Location: South West of the United Kingdom.
Distribution: Ubuntu 16.04.6 LTS (Xenial Xerus)
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Agrouf
if you don't know the difference between shell and bash, read this :
http://www.tuxfiles.org/linuxhelp/cli.html
Thanks for that Agrouf, my apologies for the delay in replying, we just suffered a massive power outage here which dropped me offline rather abruptly.

I will now embark on some serious research and examine your suggested links.

Many thanks for your continued support, I will come back if I have any more difficulties.
Regards
 
Old 03-07-2007, 10:29 AM   #8
jimmy512
Member
 
Registered: Oct 2006
Location: London
Distribution: Arch
Posts: 183

Rep: Reputation: 31
Remember, you might need to chmod the scrip before use (to make it executable)

chmod +x XXX.sh

This needs to be done in the console.
 
Old 03-07-2007, 11:38 AM   #9
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Rep: Reputation: 30
Bash scripts do not need to be compiled.
 
Old 03-07-2007, 12:39 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
ivtv and mythtv are compiled applications and not a shell script. Here are the install instructions for ivtv
http://ivtvdriver.org/index.php/Howt...ad_and_install

The file you downloaded is a compressed archive of the source code. The howto show how to extract the files and compile the soruce code using the make command.

BTW shell scripting is an interpreted language.
 
  


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
Friendly advice about "installing a kernel" sundialsvcs Linux - Kernel 2 09-07-2006 09:08 AM
Shell scripts shmuel_orgad Programming 4 05-21-2006 05:33 AM
Advice on a linux-friendly pda/phone? usernamenumber Linux - Laptop and Netbook 3 02-01-2006 03:48 PM
making user friendly screen through shell scripting Prasun1 Linux - General 7 07-09-2005 04:31 AM
Shell Scripts benwy Linux - Software 1 06-09-2003 02:58 AM

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

All times are GMT -5. The time now is 07:44 PM.

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