I want to be able to use nohup and time together in a bash shell while running mpiexec such that the output (stdout), errors (stderr) and time all end up in 1 file. Here is what I am using right now:
nohup bash -c "time mpiexec.hydra -np 120 -f nodefile ./executable -i 1000 > results.log 2>&1"
However, what is happening is that time goes to a file called nohup.out and output and error goes to results.log
Has anyone figured this out?