#!/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