Greetings:
I have Solaris 2.4 (x86) running on my PC's. I have Solaris 2.5
running on my office servers (NIS+ mapped, of course). The following
command-line syntax is what I'm trying to run via Bourne shell only:
# [ `hostname` -eq "server1" ] && crontab -l
On 2.4, I get the error message "test: argument expected" in all
implementation of this syntax! Everything works properly on Solaris
2.5! I've tried using both "/bin/sh" and "/sbin/sh" shells, but to no
avail! This particular command-line tests the current server. If the
current server's name is "server1", then the command prints the crontab
entries!
Does anyone know if this is an operating system "bug" with Solaris
2.4? I would think it was. I've tried this with Linux 2.0.x (I know,
it's not the *same*), and the syntax works fine!
Thank you for your time,
------------------------------------------------------
THE PRECEDING REFLECTS THE VIEWS OF THE AUTHOR
AND NOT, NECESSARILY, THE VIEWS OF EDWARD JONES.
------------------------------------------------------