How to logically negate the return value of a command?

Chris Green cl at isbd.net
Wed Sep 24 15:44:38 UTC 2014


Even odder, I have the following in my ~/.ssh/config file:-

    Match host chris exec "eval ! ping -c1 chris"
        ProxyCommand ssh cheddar nc -q0 zbmc.eu 22


... and I get the error:-

    chris at x201$ ssh chris
    /bin/bash: line 0: exec: eval: not found


It seems as if what ssh is doing is using the bash 'exec' built-in to
execute the given string.


-- 
Chris Green




More information about the ubuntu-users mailing list