SUMMARY: sh question

From: Feng Qiu (
Date: Thu Sep 07 2000 - 15:59:31 CDT

Hello, all,
Thanks to all the response except one complaim about my question.
It is too many to list individually here. Thanks, you wonderful guys.
The answer is simple, I believe I got first answer within a half hour. I need
put double quotation on :
`rsh host-name finger | grep console`
so, now everyone know I am not a frequently shell programmer.

Feng Qiu wrote:

> Hello, all,
> I try to write a script to test if someone login from console:
> if test `rsh host-name finger | grep console` != ""
> then
> dosomething
> else
> echo "NOBODY"
> fi
> I cannot make it work, anyone know what is wrong?
> Thanks!

U BEFORE POSTING please READ the FAQ located at
. and the list POLICY statement located at
A To submit questions/summaries to this list send your email message to:
A To unsubscribe from this list please send an email message to:
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:16 CDT