Skip to main content
Tweeted twitter.com/StackCodeReview/status/1246497898721955840
deleted 70 characters in body; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Make code efficient for Remote to Remote copyremote copying of files

Here is my code:

I want the scp logic and checksum logic to be efficient.

Make code efficient for Remote to Remote copy files

Here is my code:

I want the scp logic and checksum logic to be efficient.

Remote to remote copying of files

Improve grammar etc.
Source Link
Stephen Rauch
  • 4.2k
  • 12
  • 23
  • 36

I want to make my code efficient; I'm new to pythonPython and I don't know how.

  1. Find checksum of a file by executing cksum command in remote-1.
  2. Executing SCP command from my local to copy file remote-1 to remote remote-2.
  3. Again do checksum and compare both to give status.

I want to make my code efficient; I'm new to python and I don't know how.

  1. Find checksum of a file by executing cksum command in remote-1.
  2. Executing SCP command from my local to copy file remote-1 to remote-2.
  3. Again do checksum and compare both to give status.

I want to make my code efficient; I'm new to Python and I don't know how.

  1. Find checksum of a file by executing cksum command in remote-1.
  2. Executing SCP command from my local to copy file remote-1 to remote-2.
  3. Again do checksum and compare both to give status.

I've written a logicfunction to copy files remote-to-remote using SCP command, paramiko, pexpect, and paramiko-sftp I.

I want someone to make my code efficient asefficient; I'm new to python and I don't know the levels in pythonhow. Here logic is in 3 steps:

Here's my logic in 3 steps:

Here is my code:

Required: I want mainly scp logic and checksum logic to be efficient.

I want the scp logic and checksum logic to be efficient.

I've written a logic to copy files remote-remote using SCP command, paramiko, pexpect, paramiko-sftp I want someone to make my code efficient as I'm new to python I don't know the levels in python. Here logic is in 3 steps:

Here is my code

Required: I want mainly scp logic and checksum logic to be efficient.

I've written a function to copy files remote-to-remote using SCP command, paramiko, pexpect, and paramiko-sftp.

I want to make my code efficient; I'm new to python and I don't know how.

Here's my logic in 3 steps:

Here is my code:

I want the scp logic and checksum logic to be efficient.

Source Link
Loading