Hi

This script works with ZFD 4.0.1.5 but after an upgrade to 7.0.0.0 it
stop working.

When the command "zisedit Name" the computer name is returned if it
exists. if it dosent exist the return is blank

But when usen ZDM7 it returns
"computer name Novell ZENworks Imaging View Image-safe Data 7.0.0.0
(c) Copyright 2002-2005, Novell, Inc. All rights reserved."


And when no computer name exists it reutrns "ZENworks Imaging View
Image-safe Data 7.0.0.0 (c) Copyright 2002-2005, Novell, Inc. All
rights reserved."


I think it this extra rows that are messing up the script...

Any ideas howto fix this?


/mats



####Image script



if [ -n "$(zisview Name)" ]; then
WSNAME=$(zisview Name)
else
echo -e "no safedata"
While test ! $WSNAME; do
echo -n "Please enter the workstation name :"
read WSNAME;
done;

fi

img restorep 172.16.10.10 //172.16.10.10/image/image.zmg
zisedit Name=$WSNAME