LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-20-2006, 09:21 AM   #1
esm03
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
simple Installation process


Hey everyone, I have a simple question about running a command in terminal. I have a install.sh file that I want to boot froma cd, how do I change a directory and jump into the cd to execute the file.
The location of the cd itself is /media.

Please help, thanks for your time.
 
Old 06-20-2006, 09:38 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I don't hink you need to actually enter the cdrom directory to execute it. It could probaly be done, but I can't think of a good reason.

As root, just type ./media/cdrom/install.sh
 
Old 06-20-2006, 10:09 AM   #3
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
A tiny correction to rickh's suggestion: perhaps it was a typo, but IIRC prefixing a path with a dot is only necessary when you are already inside the directory ('.' represents the current working directory).
And another common reason for scripts to fail is that they have not been made executable (e.g. "chmod u+x").
Hope that helps.
 
Old 06-20-2006, 04:10 PM   #4
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by JunctaJuvant
And another common reason for scripts to fail is that they have not been made executable (e.g. "chmod u+x").
That won't apply in this situation. The OP was talking about a CD, and you can't change file permissions on a read-only filesystem.

Since this is apparently a shell script, you could just explicitly run it with BASH, like this:
Code:
bash /media/cdrom/install.sh
 
Old 06-21-2006, 09:05 AM   #5
esm03
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the help guys, I will talk to you soon.
 
  


Reply



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
Simple check for process, bash BruceC Programming 9 02-09-2006 03:57 AM
Would an Automated Installation process Help? Kannies Linux - Software 1 12-28-2005 09:48 AM
simple backup process using server/client technology debloxie Linux - Networking 11 10-24-2005 02:58 PM
simple, maybe complicated process monitoring jwstric2 Programming 1 02-04-2005 12:45 AM
SUSE 8.1 installation process failed Tafta Linux - Newbie 5 01-22-2003 03:37 PM

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

All times are GMT -5. The time now is 11:39 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