Current menu script
Jeff Harrison
jeffaharrison at yahoo.com
Wed Feb 1 15:06:47 PST 2006
--- Jeff Harrison <jeffaharrison at yahoo.com> wrote:
> 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.
>
Hmm, I just thought of a way to do this. I can just
use -r $0 to the command line. Duh!
Jeff Harrison
jeffaharrison at yahoo.com
Author of JHExport and JHImport. The easiest and
fastest ways to generate code for filePro exports and
imports.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Filepro-list
mailing list