nohup myscript.pl 2>&1 >myscript.log & #### ssh somehost 'nohup myscript.pl 2>&1 >myscript.log &'