I'm trying to close programs in several different servers basically at once, and each has a separate timeout. I've tried ssh «ServerName» 'sleep 2s; otherCommand', but that sleeps the main terminal I'm running from. I've tried looking it up, and failed at finding anything relevant. The desired behavior is for the server, let's say Server 1, to wait 2s before executing the second command, while the main server I'm running on, let's say Server 2, continues to queue other commands both to it, and to other servers. Currently, Server 2 waits for 2s, then continues sending commands out.
Thanks in advance!
sleep. However the local is waiting for the remote to complete (otherCommand).