TrickAndTweak

Linux Tricks For Loop Amp Amp Tar To Send A File To Specific Dir

for Server_To_Check in `/bin/cat serverlist` ;

do echo "Server: ${Server_To_Check}" && tar cpf - rtpa-hw-check.sh | \
/usr/bin/sudo /usr/bin/keyssh root@${Server_To_Check} \
"tar xpf - -C /var/tmp/" && /usr/bin/sudo /usr/bin/keyssh root@${Server_To_Check} '/var/tmp/rtpa-hw-check.sh' \
> RTPAlogFiles/${Server_To_Check}_hwCheck_$(date +"d%Y").log 2>&1 ; done

Trick and tweaks

Other

Certification materials

edit SideBar

Blix theme adapted by David Gilbert, powered by PmWiki