12 lines
226 B
Bash
Executable file
12 lines
226 B
Bash
Executable file
if [ $# -lt 3 ] ; then
|
|
echo "usage: $0 [configuration FILE] [serverIPAddr] [userName]"
|
|
exit 0
|
|
fi
|
|
|
|
configFile=$1
|
|
serverIPAddr=$2
|
|
userName=$3
|
|
sftp -S /usr/sbin/ssh "$userName"@"$serverIPAddr" << EOF
|
|
get "$configFile"
|
|
quit
|
|
EOF
|