diff --git a/xCAT-client/sbin/tabedit b/xCAT-client/sbin/tabedit index 65466aeda..a8d9965f8 100755 --- a/xCAT-client/sbin/tabedit +++ b/xCAT-client/sbin/tabedit @@ -1,4 +1,5 @@ #!/bin/sh +#test # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html # Opens the specified table in the users editor and writes changes back to the db @@ -11,6 +12,9 @@ function cexit { } trap cexit 2 15 +#Source for environment variables +source /etc/profile.d/xcat.sh + TABLE=$1 if [ -z "$TABEDITOR" ]; then TABEDITOR=$EDITOR @@ -27,7 +31,7 @@ fi # Dump the table to a temporary file mkdir -p /tmp/tabedit.$$/ -xcatclientnnr tabdump $TABLE > /tmp/tabedit.$$/$TABLE.csv +$XCATROOT/bin/xcatclientnnr tabdump $TABLE > /tmp/tabedit.$$/$TABLE.csv # Save the checksum to see if it actually changes.. if [ `uname` = "AIX" ]; then