first commit
This commit is contained in:
10
scripts/looping_within_host_ssh.sh
Normal file
10
scripts/looping_within_host_ssh.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
FILE=$1
|
||||
for host in $(cat $FILE); do
|
||||
if [[ $host =~ clnara* || clnars1d && clnars1m && clnsr206 && clnprp1d && clnprp1m && clnpr2e4 ]] ; then
|
||||
echo -e " $host must be mounted as binformd user\n"
|
||||
else
|
||||
ssh $host 'for i in $(hostname && cat /etc/fstab |grep -v "^#" | grep sc |awk '\''{print $2}'\'' ) ; do echo $i; done' 2>&1 | tee -a celeraUmnt${DATE}
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user