I'm running few commands on a remote server, by sshpass.
gnome-terminal --maximize --tab --title='aTask' -e "sshpass -p "afsd@#$5u89f" ssh email@example.com 'command1 && command2'" \
So my question is, what if my last command is
mvn clean install, then how may I know that the build was successful?
In a way I need to track down my first child process whether it has completed all the commands successfully, so that I can start another child process sequentially.