Current menu script
Kenneth Brody
kenbrody at bestweb.net
Wed Feb 1 16:05:56 PST 2006
Quoting Jeff Harrison (Wed, 1 Feb 2006 14:19:33 -0800 (PST)):
> One of my clients has asked me to log all attempted
> access via menu items to all of their files. So I
> created a file called accesslog and a library process
> to post to it that looks like the following:
[...]
> The problem I am running into is on the post to
> acc(5). I would like to post the name of the menu
> script being run. I tried testing by running a
> regular shell script that calls the following command
> line:
>
> /appl/fp/dclerk lib -s1 -z logger -r 1E2
>
> I was hoping that getenv("0") would return the name of
> the script, but it doesn't. It just returns "".
That's because there is no environment variable named "0".
> I also tried @argv("0") and @argv("1") but no luck
> there either.
That's because @argv["1"] would be the path to dclerk.
> Do I need to do a user command? I guess I need the
> process name of the parent process. Any help would be
> appreciated. Thanks.
The only thing available about the parent process is its process ID.
(Which you can access in filePro 5.6 with the GETPPID function under
*nix.)
You _may_ be able to get it with a USER script which walks up the
process tree until it finds *clerk's/*report's parent process, which
may or may not give you any useful information.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list