Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-08-2005, 04:06 AM   #1
lorkp
Prospect
 
Join Date: Jun 2004
Posts: 11
Dumb Question... How Do I Run a Program??

I have installed cdrdao on my comptuer but I don't know how to run it from the terminal! What do I type?
lorkp is offline   Reply With Quote
Old 08-08-2005, 07:24 AM   #2
Treavize
Prospect
 
Join Date: Aug 2002
Location: Tulsa
Posts: 44
This app most likely has a man page which will explain ussage. Try entering man cdrdao in Terminal.
__________________
I already used my clever sig at /.
Sage iMac DV+ 450Mhz G3
1024 MB Ram 80 gig hd
Mac Mini 1.42 GHz G4 love
80 gb of slow disk space
512 mb upgrade stolen from my windows box
OS X 10.4.2 Power of the Tiger
Treavize is offline   Reply With Quote
Old 08-08-2005, 03:06 PM   #3
lorkp
Prospect
 
Join Date: Jun 2004
Posts: 11
thanks for the reply. Terminal says that there is no manual entry for cdrdao, any other ideas? The program is in /usr/local/bin. Here's the page that has all of the commands and such. http://linuxreviews.org/man/cdrdao/ It's just that when I type one it doesn't work and there's obviously something that I have to do first to get the program working. When I type a sample command from that link it sasy "-bash: cdrdao: command not found." I'm sure that it's very basic since they don't even mention it. Thanks again!
lorkp is offline   Reply With Quote
Old 08-08-2005, 03:24 PM   #4
tonyo
Prospect
 
Join Date: Jan 2002
Location: Reno, NV
Posts: 48
Open terminal and type cd /usr/local/bin
type cdrdao
If it needs variable set, the output will probably tell you how to access them. But for sh***s and giggles try typing cdrdao -help.

Also, you need to set the environment variables for your shell - do a find on for this the main OSX hints site and you'll bump into quite a few hints relating to that. Without setting them you're going to have a hard time running 'nix stuff.

hth,

Tony
tonyo is offline   Reply With Quote
Old 08-08-2005, 03:32 PM   #5
lorkp
Prospect
 
Join Date: Jun 2004
Posts: 11
when I go to /usr/local/bin and type cdrdao it says "-bash: cdrdao: command not found." I'm going to go and try to set the environment variables now
lorkp is offline   Reply With Quote
Old 08-08-2005, 03:43 PM   #6
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,939
Please read the Unix FAQ that is a sticky thread at the top of this forum (Unix newcomers) section.
hayne is offline   Reply With Quote
Old 08-08-2005, 04:29 PM   #7
seagull
Triple-A Player
 
Join Date: Aug 2004
Posts: 76
Hi,
Just a few hints (UNIX-gurus correct me if I'm wrong)

1 - The path to the location of the cdrdao program must be in yout $PATH-variable, check this with:

echo $PATH

2 - The program must be executable, use chmod to change executable flags, see "man chmod" for details

- Point 1 and 2 should be OK if your installation was correct, if not check your installation.

- Note that cdrdao is available through Fink , it is worth checking out if you have not tried it before

-seagull
seagull is offline   Reply With Quote
Old 08-08-2005, 04:48 PM   #8
NovaScotian
Hall of Famer
 
Join Date: Oct 2002
Location: Halifax, Canada
Posts: 4,945
As an aside in this thread, Hayne's excellent FAQ is a must read before doing anything in the Terminal.

The one caveat I would add to it is that AppleScript uses bash in 10.3 for scripts containing "do shell script ..." even though tsch is the default shell in the Panther Terminal. Since there must be differences (or the two versions wouldn't coexist), it is worth noting that checking a script in the default terminal may not give the same result from a script. I'm sure Hayne could elaborate.
NovaScotian is offline   Reply With Quote
Old 08-08-2005, 09:07 PM   #9
lorkp
Prospect
 
Join Date: Jun 2004
Posts: 11
Got it working! thanks guys
lorkp is offline   Reply With Quote
Old 08-08-2005, 09:20 PM   #10
guardian34
All Star
 
Join Date: Jul 2004
Posts: 713
Quote:
Originally Posted by NovaScotian
AppleScript uses bash in 10.3 for scripts containing "do shell script ..." even though tsch is the default shell in the Panther Terminal.

Actually, bash is the default shell for new users in Panther. If you upgraded to Panther from an earlier version, then your previous settings (e.g. using tcsh) will be retained.
guardian34 is offline   Reply With Quote
Old 08-09-2005, 08:53 AM   #11
NovaScotian
Hall of Famer
 
Join Date: Oct 2002
Location: Halifax, Canada
Posts: 4,945
Quote:
Originally Posted by guardian34
Actually, bash is the default shell for new users in Panther. If you upgraded to Panther from an earlier version, then your previous settings (e.g. using tcsh) will be retained.

That's it then - I've gone through all the OS X versions, but I've been too timid (even after reading Hayne's FAQ) to attempt to alter my default shell to bash.

Last edited by NovaScotian; 08-09-2005 at 09:01 AM.
NovaScotian is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.