I would like this script to NOT prompt me for a password when I run it. I would like to put a password inside the script that will pass by itself. This is not a root password: It is for an account set up specifically for this purpose.
#!/bin/bash
copyPath=/u/home/topp/Daily
destinationPath=/home/taliesin_oppenheimer
pass=Pass
scp user@host:$copyPath/UserLatency.txt $destinationPath/TXTfiles
scp user@host:$copyPath/ServerLatency.txt $destinationPath/TXTfiles
etc
Ideally, I would like to set a crontab that launches this script every morning, so i can parse the txt files on my local machine as soon as I get in to the office. When I run this right now, I have to enter my password for each file I copy.
Any pointers?
Thanks and best,
-Tali