HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
setmemwindow(1M) setmemwindow(1M)
RETURN VALUE
The returned exit value is 0 on success or a positive number on failure.
If -n is not specified, the value returned is the exit status of the executed program obtained from the wait-
pid(2) system call.
EXAMPLES
#
# Start the program "myprog" in a memory window extracted by the string
# "myapp".
#
WinId=$(getmemwindow myapp)
setmemwindow -i $WinId myprog arg1 arg2
#
# Start the program "myprog" in a newly created memory window
# extracted by the string "myapp".
#
WinId=$(getmemwindow myapp)
setmemwindow -c -i $WinId myprog arg1 arg2
#
# Start the program "myprog" in an existing memory window
# extracted by the string "myapp".
#
WinId=$(getmemwindow myapp)
setmemwindow -j -i $WinId myprog arg1 arg2
#
# Start the program "myprog" in a private memory window. Only
# "myprog" and its descendents can access the window.
#
setmemwindow myprog arg1 arg2
AUTHOR
setmemwindow was developed by HP.
FILES
/etc/services.window
File containing applications’ associated window IDs.
SEE ALSO
getmemwindow(1M), services.window(4)
11.0 Memory Windows White Paper
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1M−−839