ETC/Ubuntu

scp를 백그라운드에서 실행하는 방법

seokhyun2 2018. 6. 12. 17:06

nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1


위와 같이 실행하면 비밀번호를 입력할 수 있음

비밀번호 입력 후 ctrl+z 입력

그러면 아래와 같이 출력될 것임


[1]+  Stopped   scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1

여기서 아래와 같이 입력


bg


아래와 같이 출력되면서 시작됨

[1]+ scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1