scp without password (Non Interactive)
This is a simple tricky method for doing SCP non interactively(Without giving username and password each time)
Example:
Example:
copy.sh
#######################################################
#!/bin/ksh
sshpass -p '123' scp init.ora oracle@192.160.10.1:/tmp/
mailx -s "Copy done" "xx@xx.xx" < "Done"
#######################################################
Call the script:
nohup copy.sh &
No comments:
Post a Comment