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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM