Current menu script
Bob Stockler
bob at trebor.iglou.com
Wed Feb 1 16:03:10 PST 2006
Jeff Harrison wrote (on Wed, Feb 01, 2006 at 02:19:33PM -0800):
| 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:
|
| @menu:::
| ::lookup acc = accesslog r=free -e:
| ::acc(1)=@id ' who:
| ::acc(2)=@td ' date (when):
| ::acc(3)=@tm ' time (when):
| ::acc(4)=@pm ' menu path passed in @pm (what):
| ::acc(5)="" ' ?? name of menu script (what):
| ::write acc:
| fini:::
| ::exit:
|
| 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 "".
|
| I also tried @argv("0") and @argv("1") but no luck
| there either.
|
| 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.
I don't understand what you're trying to do, on what OS,
with filePro User Menus or processing table menus, and
whether the "menu scripts" you refer to are those on fP
User Menu Action Command Lines with "/fp/menuname.-?", or
are they scripts that run menus, or what.
Bob
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list