i need a little help. I have bash script what connects to a remote server and copy a logfile to my local server with scp. On remote servers I can't copy keys or install. I have limited rights. I have some dump logs what I need to analyze so i want to copy them on local server.  This a little bit tricky cause i use expect command for password. This script is called scp.sh and it looks like:#!/bin/bashexpect -c     spawn scp xxx@exemple.com:~/path/dir/some.log /home/some.logexpect \Password\send \password\r\interact .Now i have 2 servers (TEST and LIVE) and 2 users and i want to make it like this to execute: ./scp.sh TEST or ./scp.sh LIVE
bash script to execute a command but with different data stored in file
linux;bash;scripting