You need something that's on all *nix systems.
/etc/passwd
/etc/hosts
or even /etc/motd
But why use cat?
ssh $HOST ls -la /etc/ will do just as well.
ssh $HOST ls -la /tmp is probably even less of a risk.
If you are testing ssh, any command will do.
ssh $HOST ls -d /tmp is probably best.
You know what the result will be, on all unix systems, and if you get "/tmp"
then ssh works.
Cheers
Vernon
On Fri, Jun 11, 2010 at 2:32 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
What is something that can be executed to make that universal? Is
/etc/*release on all *nix systems? I know it is on rhel but that's
it.
On 6/11/10, Andreas Kunberger <user-6b0b54288086@xymon.invalid> wrote:
Why not use simply
ssh %host% cat /etc/SuSE-release
mfg
Andreas
--
Andreas Kunberger
Körschtalstraße 26, 73770 Denkendorf
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
“Success is not final, failure is not fatal: it is the courage to
continue that counts.”
--- Winston Churchill