add rcmd function, this will run a shell command on remote server