here is the content of start.sh
:
cmd="nohup java -cp lib/*:../common/lib/* -server -Dlogback.configurationFile=cfg/logback.xml -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30002 simulator4j.SimulateEngine --config cfg/config.pb --properties properties/ &"
$cmd
when I run ./start.sh
, it blocked until I input ctrl+c
. if I directly input the cmd in terminal, it works well
You can execute a string in bash
by using the eval
command:
cmd="nohup java -cp lib/*:../common/lib/* -server -Dlogback.configurationFile=cfg/logback.xml -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30002 simulator4j.SimulateEngine --config cfg/config.pb --properties properties/ &"
eval $cmd
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.