How to continue running a script while offline?

Hi there,
I'm not really stranger to Linux and shell scripting but I am to servers. Anyway, I usually run scripts on a shared science machine, accessible via ssh.
My scripts are usually run with mpi, e.g.

mpirun -np 16 ./my_script

the things after entering the science machine and running the script and I'd love to turn off the computer and mind my own business, which I can't since the script halts when I turn off the computer.

Any suggestions?

nohup should work:

nohup mpirun -np 16 ./my_script 

I got this error

nohup: ignoring input and appending output to `nohup.out'

?

That's not an error message. That's success!

you may want to check "screen" or "tmux". both can do exactly what you want.

but If type 'top' or 'ps' I can clearly see that I'm running anything .... mmmh

mpirun -np 16 ./my_script

Assuming that the script is suitable for running in background (i.e. it does not require a physical terminal or keyboard input):
The general syntax to background a script is to issue "nohup" and "&" (put process into background).

nohup /full_path_to_mpirun/mpirun -np 16 /full_path_to_my_script/my_script &

Within the processes it is advisible to redirect any output to unique named logfiles rather than defaulting to nohup.out.