offline update

This commit is contained in:
Austen Adler 2016-01-21 12:20:18 -05:00
parent 1195218f1d
commit 8014583743

View File

@ -159,8 +159,11 @@ function ctar(){
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest #tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
} }
function offline(){ function offline(){
echo unshare -n -- sh -c "sudo -u stonewareslord zsh -c '$@'" if [ ! -z "$@" ] ; then
sudo unshare -n -- sh -c "sudo -u stonewareslord zsh -c '$@'" sudo unshare -n -- sudo -u stonewareslord zsh -c "$@"
else
sudo unshare -n -- sudo -u stonewareslord zsh
fi
} }
function smon(){ function smon(){
timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207 "$@" timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207 "$@"