workpath=$(cd `dirname $0`; pwd)dirname $0,当前脚本文件所在目录cd `dirname $0`pwd
脚本是软连接时workpath=dirname $(readlink $0)