HP-UX Reference (11i v1 00/12) - 1M System Administration Commands A-M (vol 3)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
g
getmemwindow(1M) getmemwindow(1M)
NAME
getmemwindow - extracts window ids of user processes from /etc/services.window
SYNOPSIS
getmemwindow string
DESCRIPTION
getmemwindow is the command used to extract window ids of user processes from the
/etc/services.window file. User applications are encouraged to place a unique string defining an
application and its associated window id in the /etc/services.window file and then extract that win-
dow id using the getmemwindow command.
This allows for changing the application window id in one central location, rather than changing scripts
with hard-coded values, in the event of a memory window collision between two applications.
EXAMPLES
# Extract the window id for "HP" from the /etc/services.window file
# and start the program "HP_startup_script" with arguments arg1 and
# arg2.
#
WinId=$(getmemwindow HP)
setmemwindow -i $WinId HP_startup_script arg1 arg2
AUTHOR
getmemwindow was developed by HP.
FILES
/etc/services.window
File containing applications associated window id.
SEE ALSO
setmemwindow(1M), services.window(4), 11.0 Memory Windows White Paper.
HP-UX Release 11i: December 2000 1 Section 1M295
___
___