Commit 8365e22b authored by Mike Gabriel's avatar Mike Gabriel

doc/examples/run-nxproxy2nxproxy-test: Create NX_COOKIE dynamically using the mcookie tool.

parent 7dc26333
...@@ -40,9 +40,10 @@ mkdir -p "${NX_ROOT}" ...@@ -40,9 +40,10 @@ mkdir -p "${NX_ROOT}"
# This should be randlomly generated. # This should be randlomly generated.
# #
#NX_COOKIE=`xauth list |grep "${HOSTNAME}/unix:\<${NX_PORT}\>" | grep MIT | cut -f 5 -d ' '` NX_COOKIE=`xauth -n list |grep "${HOSTNAME}/unix:${NX_PORT}" | grep MIT | cut -f 5 -d ' ' | head -n1`
NX_COOKIE=123efa980d2cba234ef6f73deac810ff if [ -z "$NX_COOKIE" ]; then
NX_COOKIE=`mcookie`
fi
# #
# Create the directories for the NX session. # Create the directories for the NX session.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment