offline update
This commit is contained in:
parent
1195218f1d
commit
8014583743
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user