changed Files: x
Signed-off-by: oxidized <michael.grote@posteo.de>
This commit is contained in:
parent
cdb8f39eb7
commit
8bff6233d2
1 changed files with 8 additions and 0 deletions
8
x
8
x
|
@ -36,6 +36,14 @@ IFS=','
|
|||
while read -r fqdn path; do
|
||||
# Print the variables (you can perform any actions you need here)
|
||||
fqdn=$(echo $fqdn | tr -d "[:space:]")
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ ! -e "$path" ]; then
|
||||
echo "File file_path does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
ssh -n -i ${path} ${fqdn} "/export show-sensitive" > config_${fqdn}.rsc
|
||||
echo add
|
||||
|
|
Loading…
Reference in a new issue