I have a long running script at the remote computer.

I don't want terminate my ssh session, and need enter it into a shell script.

How is it possible to prevent my Mac from falling into sleep from the command line?