dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Beginner woes trying out rsh/rcp with dejagnu


From: Dan Kegel
Subject: Beginner woes trying out rsh/rcp with dejagnu
Date: Sun, 29 Jun 2003 19:33:29 -0700

Now that I have a working rsh/rcp/rlogin, I tried using them with dejagnu.
Naturally, it didn't work on the first try, and the only way to debug it was
to 
start reading the dejagnu source code and adding print statements.
Turns out it rsh_download was using the statement
  set status [catch "exec $RSH $rsh_useropts $desthost rm -f $destfile |&
cat" output]
This hangs for me.  Changing it to
  set status [catch "exec $RSH -n $rsh_useropts $desthost rm -f $destfile"
output]
seems to let me procede.  

(rsh_exec also runs into trouble, giving the error
  rsh output is Syntax error: Unterminated quoted string
but that's probably because I botched the chroot jail login wrapper
on the remote machine.)

Questions:
  1. Isn't |& a csh-ism?  Doesn't that mean rsh.exp assumes the shell on the
remote end is csh?
  2. Why isn't rsh run with the -n option here?  We don't have anything to
send
     via stdin, and without -n, rsh seems to hang (though it doesn't when I
just
     try "rsh host ls" from the commandline).

Sigh.  I'm going to have a beer and read Harry Potter in the bath...
it won't help my rsh problems, but at least I wont care about them as much
:-)
- Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]