> On 27 Nov 2018, at 22:33, Rick McGuire <object.r...@gmail.com> wrote: > … … ... > Do this make sense? Can the "~" form be used on the bind? >
NO the ~ is resolved by the shell IMO the best place would be a hidden file in the home dir Which can be dynamically built using something like #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/syslimits.h> #include <sys/types.h> #include <pwd.h> int main (int argc, char* argv[]) { const char *homepath; const char *pidfile; if ( (homepath = getenv("HOME")) == NULL) { homepath = getpwuid(getuid())->pw_dir; } printf("HOME : %s\n", homepath); printf("might give : %s/%s\n", homepath,".ooRexx.pid"); if ( (pidfile = getenv("OOREXX_PIDFILE") ) ) { printf("pidfile : %s\n", pidfile); } return 0; } To give HOME : /Users/enrico might give : /Users/enrico/.ooRexx.pid pidfile : /tmp/ooRexx.pid The environment variable OOREXX_PIDFILE is the approach I use in the modified APIservice.cpp cheers Enrico _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel