# nxacl.app v1.0. Copyleft by dimbor at unixforum.org <akadown@pisem.net>
# Script parse ACLS-files in NX_ACL_DIR and search user/group permissions for given
# cmdstr. ACLS filenames are usernames, groupnames and "all". Permissions search order:
# user - group - all. ACL contain one or more strings of regexp-patterns. See examples at
# existing ACLS. Format:
#
# # some comment-string
# [!]CmdTpl [%%% [[!][@@]OnceAppTpl] %%% Prog|"Msg"]
#
# ! - not equal == invert rule
# %%% - fields delimiter
# CmdTpl - startsession command template
# OnceAppTpl - if it not found/found (""/"!") in process-list of user do'nt start session
# @@ - search in process-list of all users (ps ax)
# Prog - string for nxdialog or other x-binary to execute instead session-app
# if "OnceAppTpl" condition is FALSE
#
# Attention!!! Spec-symbols (like ".","$","^") must be escaped twice vs once
# ('\\.' vs '\.'), sorry.

