image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old October 11th, 2001, 12:00 PM
jmmistrot's Avatar
Registered User
 
Join Date: Sep 2001
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
jmmistrot is on a distinguished road
Question Command line executables..?

I finally got !0.1 an installed it with the new dev tools. I was hoping that this was gonna solve somme of my problems but... I still can't run stuff from the command line. I can compile just fine using cc and c++ but when I type in te name of the object file I get a 'command not found' prompt. Can anyone help? I don't even know where to start to fix this... I am about to reluctantly retreat back to the lab and the iris workstations...
Reply With Quote
  #2  
Old October 11th, 2001, 03:31 PM
Registered User
 
Join Date: Jun 2001
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
cthulhu is on a distinguished road
if you are using a terminal...and you want launch an application from it, ( ex temp :the application you have compiled) you must write the complete path of the application you want launch ex:
1) the application is in the current directory:
./applicationName
or
completePath/applicationName
2) if you want launch your application from all directory you must edit an file in your home (in linux is .bashrc in macosx is a thing like it maybe .tchsrc i have forget it) and add in the section path "./"

Ps: Excuse me for my english.....is realy not good...

Reply With Quote
  #3  
Old October 11th, 2001, 05:24 PM
jmmistrot's Avatar
Registered User
 
Join Date: Sep 2001
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
jmmistrot is on a distinguished road
Thanks for your help..That did it.. I am used to being able to just source and run.. Thanks again..
Reply With Quote
  #4  
Old October 12th, 2001, 03:19 PM
LordOphidian's Avatar
Adjutant On-Line
 
Join Date: Sep 2001
Location: Mesa, Az
Posts: 354
Thanks: 0
Thanked 0 Times in 0 Posts
LordOphidian is on a distinguished road
./

As a note, you shouldn't put '.' in your path unless you put it at the very end of your path. It could cause problems if its at the begining because someone could slip a trojan into a directory and when you cd into and then run ls, it could run. If its at the end of the path though, the system will run the /bin/ls before it finds the./ls.
__________________
iMac 800 15", Mac OS X 10.3.2
Dell OptiPlex GX200, RedHat Linux (ugg) 9
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:27 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.