Q:

Can I use a scp to download a file using shell script

Can I automate a download of a file from a system using scp(by entering the user id/password) and manipulate the file and upload it to the same place. If you have any idea of using scp in a shell script, pls do let me know
Thanks

A:

Yes you can automate that from a shell script pretty easily, but the question that remains is whether you want to input the password manually everytime you run the script or use ssh keys to accomplish authentication and achieve full automation.
Check this tutorial on using SCP.

