Labels

Friday, June 1, 2018

scp and running script in background in unix

--Start the scp in nohup mode
nohup scp oracle@100.120.182.181:/dump01/rmanbkp/MIO/* /app/mjhj/hjioz_backup > scp.out 2>&1

--press control +Z key from keyboard
ctrl+z

--type bg to get the background process
bg

-To run a sql statement in the background
nohup sqlplus "/ as sysdba" @.sql &
nohup sqlplus "/ as sysdba" @.sql > file.out 2>&1 &
nohup sqlplus / @.sql &

No comments:

Post a Comment