gpt4 book ai didi

bash - 语法错误 : EOF in backquote substitution

转载 作者:行者123 更新时间:2023-11-29 08:55:44 25 4
gpt4 key购买 nike

我遇到了一个错误Syntax error: EOF in backquote substitution 我一点也不知道为什么。有人介意快速浏览一下吗?

#! /bin/sh
# chkconfig 345 85 60
# description: startup script for produtcrawler-router
# processname: producrawler-router

NAME=productcrawler-router
DIR=/etc/productcrawler/services
EXEC=router.py
PID_FILE=/var/run/productcrawler.pid
IEXE=/etc/init.d/productcrawler-router
RUN_AS=root

### BEGIN INIT INFO
# Provides: productcrawler-router
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 5
# Default-Stop: 0 1 2 3 6
# Description: Starts the productcrawler-router service
### END INIT INFO

if [ ! -f $DIR/$EXEC ]
then
echo "$DIR/$EXEC not found."
exit
fi

case "$1" in
start)
echo -n "Starting $NAME"
cd $LDIR
start-stop-daemon -d $DIR --start --background --pidfile $PID_FILE --make-pidfile --exec $EXEC --quiet
echo "$NAME are now running."
;;
stop)
echo -n "Stopping $NAME"
kill -TERM `cat $PID_FILE
rm $PID_FILE
echo "$NAME."
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Use: /etc/init.d/$NAME {start|stop|restart|force-reload}"
exit 1
;;
esac

最佳答案

语法着色没有泄露出来?

 stop)
echo -n "Stopping $NAME"
kill -TERM `cat $PID_FILE

它是 kill 行的反引号和结尾。

关于bash - 语法错误 : EOF in backquote substitution,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5837125/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com