Monday 11 March 2013

How to run scp in the background/scp as a background process?



Syntax:
$ nohup scp <filename> username@server/ip:path > nohup.out 2>&1

Example:

$ nohup scp 1120.tar.gz oradev@ebsdev.user.com:/u01/oracle/ > nohup.out 2>&1


Then press ctrl + z which will temporarily suspend the command, then enter the command:
$bg

This will start executing the command in backgroud.

No comments:

Post a Comment