diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index b52bd38f7..bc47ce3b6 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -1,4 +1,6 @@ #!/bin/sh +HOME=`getent passwd $(whoami)|cut -d: -f 6` +export HOME if [ -z "$1" ] || [ "$1" = "-h" ]; then echo "rcons - remotely accesses the serial console of a node" echo "rcons [conserver] [-f]"