From: CyberFrog on 30 Jun 2010 06:10 Hi, How can I best use pwd or currdir when accessing compiled software from outside the local location of the exec? i.e. exec=/a/b/c/d/mysoftware/exec the user launches this using abs path from another locatin i.e. myloc=/a/b/f/g/h/j/mylocdir I now would like to know where the user is using pwd or currdir but everytime it gives location of software instead and not myloc?? Thanks
From: Jan Simon on 30 Jun 2010 07:16 Dear CyberFrog, > How can I best use pwd or currdir when accessing compiled software from outside the local location of the exec? i.e. > > exec=/a/b/c/d/mysoftware/exec > > the user launches this using abs path from another locatin i.e. > > myloc=/a/b/f/g/h/j/mylocdir > > I now would like to know where the user is using pwd or currdir but everytime it gives location of software instead and not myloc?? What is "currdir"? PWD is eactly the same as "CD" (look inside the code...). You want to know, if the user is using pwd or currdir - when or where? What "it" gives location of which software? And what does it mean, if "it" "gives myloc"? Kind regards, Jan
From: CyberFrog on 5 Jul 2010 11:21 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0f91k$mk9$1(a)fred.mathworks.com>... > Dear CyberFrog, > > > How can I best use pwd or currdir when accessing compiled software from outside the local location of the exec? i.e. > > > > exec=/a/b/c/d/mysoftware/exec > > > > the user launches this using abs path from another locatin i.e. > > > > myloc=/a/b/f/g/h/j/mylocdir > > > > I now would like to know where the user is using pwd or currdir but everytime it gives location of software instead and not myloc?? > > What is "currdir"? PWD is eactly the same as "CD" (look inside the code...). > You want to know, if the user is using pwd or currdir - when or where? > What "it" gives location of which software? And what does it mean, if "it" "gives myloc"? > > Kind regards, Jan Hi Jan, Apologies for confusion here. Right, forget the word currdir now its PWD I need and also this software is compiled code so the user can access this from anywhere on the system. However, when the PWD command is used it always gives the path to where the software lives but this is not what I want to achieve. I wish to know where the user is launching or calling this from? i.e. myloc where the user is not where the software is.
From: us on 5 Jul 2010 12:48 "CyberFrog" <domlee55(a)hotmail.com> wrote in message <i0st8v$np1$1(a)fred.mathworks.com>... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0f91k$mk9$1(a)fred.mathworks.com>... > > Dear CyberFrog, > > > > > How can I best use pwd or currdir when accessing compiled software from outside the local location of the exec? i.e. > > > > > > exec=/a/b/c/d/mysoftware/exec > > > > > > the user launches this using abs path from another locatin i.e. > > > > > > myloc=/a/b/f/g/h/j/mylocdir > > > > > > I now would like to know where the user is using pwd or currdir but everytime it gives location of software instead and not myloc?? > > > > What is "currdir"? PWD is eactly the same as "CD" (look inside the code...). > > You want to know, if the user is using pwd or currdir - when or where? > > What "it" gives location of which software? And what does it mean, if "it" "gives myloc"? > > > > Kind regards, Jan > > Hi Jan, > > Apologies for confusion here. Right, forget the word currdir now its PWD I need and also this software is compiled code so the user can access this from anywhere on the system. However, when the PWD command is used it always gives the path to where the software lives but this is not what I want to achieve. I wish to know where the user is launching or calling this from? i.e. myloc where the user is not where the software is. well... this seems to indicate that the software does a CD to where it lives... otherwise, CD would show the callers location... note: use CD rather than PWD, which is a mere wrapper for CD... type pwd; us
From: Steven Lord on 5 Jul 2010 23:01 "CyberFrog" <domlee55(a)hotmail.com> wrote in message news:i0st8v$np1$1(a)fred.mathworks.com... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message > <i0f91k$mk9$1(a)fred.mathworks.com>... >> Dear CyberFrog, *snip* > Apologies for confusion here. Right, forget the word currdir now its PWD > I need and also this software is compiled code so the user can access this > from anywhere on the system. However, when the PWD command is used it > always gives the path to where the software lives but this is not what I > want to achieve. I wish to know where the user is launching or calling > this from? i.e. myloc where the user is not where the software is. You should probably review this posting on Loren's blog: http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/ -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
Pages: 1 Prev: adjustable variable with plot Next: www.jerseysexport.com Wholesale Football Jersey |