Marcus Blankenship wrote:

> I use rsh under bash every day...
> I don't see how this could be a problem...?
>
> > ----------
> > From:         Ronnel P. Maglasang[SMTP:[EMAIL PROTECTED]]
> > Sent:         Thursday, July 15, 1999 4:53 PM
> > To:   Martin Krzywinski
> > Cc:   [EMAIL PROTECTED]; [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > Subject:      Re: rsh is driving me crazy: why?
> >
> >
> >
> > Martin Krzywinski wrote:
> > >
> > > Everytime I rsh I get
> > >
> > > 1001{gene0}~> rsh gene0 date
> > > bash: [: =: unary operator expected
> > > Thu Jul 15 16:38:40 PDT 1999
> > > bash: [: =: unary operator expected
> > > bash: [: =: unary operator expected
> > > bash: [: =: unary operator expected
> > > 1002{gene0}~>
> > >
> > > It doesn't matter which hosts on the network I do this in or to/from
> > which
> > > hosts I do this. I always get 4 unary operator expected errors,
> > sometimes
> > > at the beginning sometimes at the end.
> > >
> > > WHAT IS THIS?
> >
> > The shell you're using is bash. Please use csh, tcsh, sh or any other
> > shell to
> > execute rsh command.
> >
> > Hope this help.
> >
> > bunal!
> >
> >  ---
> >
> >  Ronnel P. Maglasang
> >  Software Design Eng'ng Department   voice : 340-0451
> >  NEC Technologies Phils., Inc.       fax   : 340-0457
> >  PEZA, Lapulapu City                 e-mail:
> > [EMAIL PROTECTED]
> >  Philippines
> >
> >  KNOWLEDGE IS CONTAGIOUS... PASS IT ON...
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-net" in
> > the body of a message to [EMAIL PROTECTED]
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]

It looks to me like your .bashrc or associated profile is referencing
unitialized environment variables.  This tends to issue a message like you
are seeing. One way around this is to put your environment variables being
used in test "[ ]" inside of quotes.  For example,

Change
        if [ $XYZ = "this" ]
to
        if [ "$XYZ" = "this" ]

However, for your scripts to work right you are going to want to find out
what is not being set and why.  As I recall, rsh does not run the same set
of scripts as when a body logs in.  This may be part of it.  It might also
be that the items being tested are defined locally and not remotely.

Hope this help,
--
Jim Gleason
Site2Site Networking
[EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to