LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 10: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, 10: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, 11:09 AM   #3
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
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, 05:10 PM   #4
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
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, 10: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


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

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

All times are GMT -5. The time now is 06:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration