Khaledadelll
13th December 2018, 10:34
I am trying to execute a shell script using qprocess that calls another shell scripts. The problem is that the program skips any other calling to other scripts and executes the next command
The script:
#tri1 decoding
utils/mkgraph.sh data/lang_test exp/tri1 exp/tri1/graph
echo "Hi there"
The code i wrote:
QStringList program ;
program<< "-c"<<"bash /home/dell2/Desktop/ll.sh";
QProcess exec;
exec.start("/bin/sh",program);
exec.waitForFinished();
The script:
#tri1 decoding
utils/mkgraph.sh data/lang_test exp/tri1 exp/tri1/graph
echo "Hi there"
The code i wrote:
QStringList program ;
program<< "-c"<<"bash /home/dell2/Desktop/ll.sh";
QProcess exec;
exec.start("/bin/sh",program);
exec.waitForFinished();