# /home/yiqin
if [ $1x = "-l"x ] ; then
/home/yiqin/sh/oms-backend.log.view.sh;
elif [ $1x = "-d"x ] ; then
source /home/yiqin/sh/dir-list.sh;
else
echo 请输入命令:
echo -e "\t" -d 查询常用目录
echo -e "\t" -l 查看最新日志
fi
# /home/yiqin/sh/oms
logfile=`ls /data/web/app/runtime/logs/manager-seller/all/ | tail -n 1`
tail -fn 1000 /data/web/app/runtime/logs/manager-seller/all/$logfile
# /home/yiqin/sh/dir
echo -e "\t 1. /home/yiqin/oms-backend oms-backend项目目录"
echo -e "\t 2. /data/web/app/runtime/logs/manager-seller/all oms-backend日志目录"
echo -e "\t 3. /usr/local/nginx/conf/vhost/yiqin nginx配置路径"
echo -e "\t 4. /home/yiqin/log/nginx/oms-backend.error.log nginx错误日志"
echo -e "\n"
read -t 3000 -p "请输入要执行数字项": num
echo -e "\n"
if [ $num == 1 ]
then
cd /home/yiqin/oms-backend
elif [ $num == 2 ]
then
cd /data/web/app/runtime/logs/manager-seller/all
elif [ $num == 3 ]
then
cd /usr/local/nginx/conf/vhost/yiqin
elif [ $num == 4 ]
then
tail -fn 500 /home/yiqin/log/nginx/oms-backend.error.log
fi