The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
works step by step on command line but not in script whamchaxed Shell Programming and Scripting 2 12-06-2007 04:47 AM
substring command works but only in BASH shell edwardtk11 Shell Programming and Scripting 2 06-27-2007 02:25 PM
script works on command line, not in cron job JackTheTripper UNIX for Dummies Questions & Answers 7 06-26-2007 10:51 PM
wat is the command to view the cpu utilization ? nothing works !!!! pingme8705 Shell Programming and Scripting 3 08-10-2005 07:50 AM
Directory Summary Command rbarlow UNIX for Dummies Questions & Answers 2 03-01-2005 11:24 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-18-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
Command only works in it's own directory

Unix/Darwin/MacOSX Terminal -- and I'm a newby.

I have a file called 'symfony' here:

/opt/sf/data/bin/symfony

If I go:

cd /opt/sf/data/bin

and then,

./symfony -V

It responds with the version number (like it should)

Great.

However, if I go to another directory:

cd /another/directory

and then try the same command, only this time with the whole path:

/opt/sf/data/bin/symfony -V

It doesn't work. Why is that?

(I thought it was a conflict with another file by the same name in /usr/bin, so I changed the name of the one I want to symfony_dev, and that didn't make any difference)
Reply With Quote
Forum Sponsor
  #2  
Old 11-19-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
[Resolved]

*RESOLVED*

It appears that in order for the program in question to run, it has to be run from the directory it resides as it makes changes to the current directory and is dependent on other files that would normally be there.

Thanks anyways.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0