Setting OS-GETENV("PWD") to get Broker

yoachan

Member
I used to use OS-GETENV("PWD") to get my broker's workDir. And it worked. It returns my WorkDir correctly. E.g. /wrk/trial/
But some time ago I have to work on a friend's server and OS-GETENV("PWD") didn't return my workDir as it's result. Sometimes it returns /www/html, the other time it returns /www/cgi. Some other time it returns /usr/bin.

My question is: Is there any proper way to get my broker's workDir? Or if I have to use OS-GETENV("PWD"), how can I manually set OS-GETENV("PWD") to returns my WOrkDir as it's value?

My best regards

YoChan
 
Back
Top