I can see this would work with localhost, where tempCmdFile exists on the machine where we're ssh'ing to. Will it also work when ssh'ing to a remote machine?