Amazon books

Sunday, January 16, 2011

SSH with password in background NOHUP

Create a shell script to copy big files and run in background informing password inside scripts like that:

[hostname]$ cat cp_datafiles.sh
echo 'password_user_f2c' | scp f2c@10.1.0.7:/ocfs03/oradata/PEBS/data/* .


Best Regards,
Paulo Portugal

No comments:

Post a Comment