Lines Matching refs:remote_cmd
140 remote_cmd = f"dir {self.file_system}"
141 remote_output = self.ssh_ctl_chan.send_command_expect(remote_cmd)
150 remote_cmd = f"/bin/df -k {self.file_system}"
152 remote_cmd, expect_string=r"[\$#]"
168 remote_cmd, remote_output
175 remote_cmd, remote_output
206 def check_file_exists(self, remote_cmd=""):
209 if not remote_cmd:
210 remote_cmd = f"dir {self.file_system}/{self.dest_file}"
211 remote_out = self.ssh_ctl_chan.send_command_expect(remote_cmd)
226 def _check_file_exists_unix(self, remote_cmd=""):
230 remote_cmd = f"ls {self.file_system}"
232 remote_cmd, expect_string=r"[\$#]"
239 def remote_file_size(self, remote_cmd="", remote_file=None):
246 if not remote_cmd:
247 remote_cmd = f"dir {self.file_system}/{remote_file}"
248 remote_out = self.ssh_ctl_chan.send_command(remote_cmd)
265 def _remote_file_size_unix(self, remote_cmd="", remote_file=None):
273 if not remote_cmd:
274 remote_cmd = f"ls -l {remote_file}"
277 remote_out = self.ssh_ctl_chan.send_command(remote_cmd, expect_string=r"[\$#]")