Loading

nohup 执行命令以后 需要再按回车


#!/bin/bash
str=$"\n"
nohup hadoop jar analysis_v4_test_args.jar -1 8 8 >/dev/null 1>logs&
sstr=$(echo -e $str)
echo $sstr




source  /execmatlab.sh 

execmatlab.sh
#!/bin/bash
str=$"\n"
nohup /usr/local/matlab2019b/bin//matlab   -nodesktop -nodisplay -r  "matlab.engine.shareEngine"   &
sstr=$(echo -e $str)
echo $sstr



source /etc/profile
str=$"\r"
nohup /usr/local/matlab2019b/bin/matlab   -nodesktop -nodisplay -r  "matlab.engine.shareEngine"   2> /dev/null  &
sstr=$(echo -e $str)
echo $sstr

来源:
https://www.cnblogs.com/mecca/p/4414474.html

posted @ 2020-03-05 19:44  Lust4Life  阅读(2116)  评论(0编辑  收藏  举报