I have a matlab script that I run from the terminal, that script creates an instance of another program using:
system('cd <path> && mpiexec -n 1 ./<program2> &')
Problem is I don't see any terminal output from
program2. (It works if I omit the ampersand, but I need
program2 to run in the background). Is it possible to have both the matlab script and
program2 output to the same terminal?