![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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) |
| Forum Sponsor | ||
|
|
|
#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. |
|||
| Google The UNIX and Linux Forums |