info-cvs
[Top][All Lists]
Advanced

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

Re: Wrong order of arguments to HP remsh when using :ext: with username


From: Todd Denniston
Subject: Re: Wrong order of arguments to HP remsh when using :ext: with username
Date: Wed, 06 Oct 2004 10:16:36 -0500

Martin Jost wrote:
> 
> Hello,
> 
> I'm using cvs 1.12.9 (also tested 1.11.17 with similar results)
> I'm on HPUX (10.20) which uses remsh (not rsh).
> I configured using "--with-rsh=/usr/bin/remsh"
> 
> When I do a "cvs update" (which uses 'ext') the command dies with:
> rcmd: -l: Unknown host
> 
> After some searching I found the following is happening:
> 
> my CVS/Root-files contain:
> :ext:address@hidden:/LOG/cvs
> 
> In src/rsh-client.c the command send to RSH is build with '-l'-Option (for 
> username) 
> first, then the server name.
> Unfortunately remsh on HPUX insists on getting the hostname _first_, then the 
> options !
> --------------------- man remsh: ---------------
> NAME
>       remsh - execute from a remote shell
> 
>  SYNOPSIS
>       remsh host [-l username] [-n] command
> -------------------------------------------------
> 
> Yes, this might be "the wrong way" - but I'm stuck with this.
<SNIP>
> This 'once' worked using an older version of CVS.
> Is there a way to have it work again ? Do I have to fiddle in some way 
> during configure ?

I don't see an option in configure, so most likely someone localy made a mod
the source to make it work.

> 
> Would it be possible to send the hostname first, then the options, or would 
> this break other remsh/rsh ?
> (This would be - IHMO anyway - two obvious changes to rsh-client.c)

looks to me like you have two choices, 
1) mod the source and compile for your location (you might even be able to get
the maintainers to accept a diff, so its easier for you in the future), 
2) install a gnu rsh http://www.gnu.org/software/inetutils/inetutils.html

> 
> TIA
> 
> Martin

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

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