Skip to content

Instantly share code, notes, and snippets.

@rajithwijepura
Forked from CreatorB/scp run in the background
Last active December 15, 2021 08:23
Show Gist options
  • Save rajithwijepura/cddf6b426322b12ff0bdaa2e2ade9df5 to your computer and use it in GitHub Desktop.
Save rajithwijepura/cddf6b426322b12ff0bdaa2e2ade9df5 to your computer and use it in GitHub Desktop.
How to put scp in background
#!/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