From bfd38e6f1d5e472427b2c77bcd2ba7bc43114ca3 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 17 Mar 2015 21:52:01 +0000 Subject: [PATCH] new functions --- etc/bashrc.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/bashrc.function b/etc/bashrc.function index 8596e2ae..58c2949b 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -262,7 +262,7 @@ nb-alert() { cmd=". $NB_ROOT/etc/profile.sh && $cmd" local ip=`dig +short $host` [ -z "$ip" ] && echo "Can't resolve macbook.brighton.loc" && return 1 - nb-ips | grep -qFm1 "$ip" || cmd="ssh $host '$cmd'" + nb-ips | grep -qFm1 "$ip" || cmd="ssh -o BatchMode=yes $host '$cmd'" #export -f mac-xmessage [ "$USER" != "nico" ] && cmd="su - nico -c \"$cmd\"" eval "$cmd" -- 2.47.3