HP-UX Reference (11i v2 03/08) - 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
waitpid (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
WARNINGS
Programs using a memory window can access shared memory objects created by other programs using the
same window (depending upon permissions). However, by default, programs using a memory window
may not be able to access shared memory objects created by programs using other windows or those not
using windows at all.
To enable access to a shared memory object across programs using different windows, or between those
using windows and those not using windows, the program must specify special options when creating the
object. See shmget(2) and mmap(2) for details.
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 2: August 2003 3 Hewlett-Packard Company Section 1M751