Forked from CreatorB/scp run in the background
Last active
December 15, 2021 08:23
-
-
Save rajithwijepura/cddf6b426322b12ff0bdaa2e2ade9df5 to your computer and use it in GitHub Desktop.
How to put scp in background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1 | |
# Ctrl + Z | |
bg | |
jobs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment