Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Cannot get nntp-open-via-rlogin-and-netcat to work
@ 2008-03-11 16:34 Michael Ekstrand
  2008-03-11 22:25 ` Katsumi Yamaoka
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Ekstrand @ 2008-03-11 16:34 UTC (permalink / raw)
  To: info-gnus-english

I'm trying to get Gnus connecting to my Leafnode server via SSH and
Netcat, thus far to no avail.  I have the following as my select method:

      '(nntp "news.elehack.net"
             (nntp-address "news.elehack.net")
             (nntp-port-number 119)
             (nntp-open-connection-function nntp-open-via-rlogin-and-netcat)
             ; (nntp-pre-command "testrun.sh")
             (nntp-via-rlogin-command "ssh")
             (nntp-via-user-name "michael")
             (nntp-end-of-line "\n")
             (nntp-via-address "border.elehack.net"))

Inserting a (message) call into the nntp-open-via-rlogin-and-netcat
function indicates that it is building a reasonable command line.
However, I can't get it to connect successfully.  The "testrun.sh"
script is a script which echos its command line arguments to a log file
and then runs them; when I use it as a pre-command, it never logs
anything, so it seems like the connection function is never actually
starting a process.

What can I do to get this working?  I've tried in both Gnus 5.13 in the
current emacs-snapshot Debian package, and No Gnus 0.4 in Emacs 24.1
(whatever is in Ubuntu 6.06's gnus package, it's what they have
installed at school).

Thanks,
- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot get nntp-open-via-rlogin-and-netcat to work
  2008-03-11 16:34 Cannot get nntp-open-via-rlogin-and-netcat to work Michael Ekstrand
@ 2008-03-11 22:25 ` Katsumi Yamaoka
  2008-03-12  0:00   ` Michael Ekstrand
  0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2008-03-11 22:25 UTC (permalink / raw)
  To: info-gnus-english

>>>>> Michael Ekstrand wrote:

> I'm trying to get Gnus connecting to my Leafnode server via SSH and
> Netcat, thus far to no avail.  I have the following as my select method:

>       '(nntp "news.elehack.net"
>              (nntp-address "news.elehack.net")
>              (nntp-port-number 119)
>              (nntp-open-connection-function nntp-open-via-rlogin-and-netcat)
>              ; (nntp-pre-command "testrun.sh")
>              (nntp-via-rlogin-command "ssh")
>              (nntp-via-user-name "michael")
>              (nntp-end-of-line "\n")
>              (nntp-via-address "border.elehack.net"))

I tried a similar method and noticed right now that the value of
`nntp-port-number' should be a string, at least for
`nntp-open-via-rlogin-and-netcat'.  Could you try this?

	(nntp-port-number "119")

I need to review code, doc string, and info concerning this...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot get nntp-open-via-rlogin-and-netcat to work
  2008-03-11 22:25 ` Katsumi Yamaoka
@ 2008-03-12  0:00   ` Michael Ekstrand
  2008-03-12 18:20     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Ekstrand @ 2008-03-12  0:00 UTC (permalink / raw)
  To: info-gnus-english

Katsumi Yamaoka <yamaoka@jpl.org> writes:
>>>>>> Michael Ekstrand wrote:
>> I'm trying to get Gnus connecting to my Leafnode server via SSH and
>> Netcat, thus far to no avail.  I have the following as my select method:
>
>>       '(nntp "news.elehack.net"
>>              (nntp-address "news.elehack.net")
>>              (nntp-port-number 119)
>>              (nntp-open-connection-function nntp-open-via-rlogin-and-netcat)
>>              ; (nntp-pre-command "testrun.sh")
>>              (nntp-via-rlogin-command "ssh")
>>              (nntp-via-user-name "michael")
>>              (nntp-end-of-line "\n")
>>              (nntp-via-address "border.elehack.net"))
>
> I tried a similar method and noticed right now that the value of
> `nntp-port-number' should be a string, at least for
> `nntp-open-via-rlogin-and-netcat'.  Could you try this?
>
> 	(nntp-port-number "119")
>
> I need to review code, doc string, and info concerning this...

Providing the port number as a string makes it work.  Thanks!

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot get nntp-open-via-rlogin-and-netcat to work
  2008-03-12  0:00   ` Michael Ekstrand
@ 2008-03-12 18:20     ` Stefan Monnier
  2008-03-12 19:45       ` Michael Ekstrand
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2008-03-12 18:20 UTC (permalink / raw)
  To: info-gnus-english

> Providing the port number as a string makes it work.  Thanks!

Removing it altogether should work as well: 119 is the default.


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot get nntp-open-via-rlogin-and-netcat to work
  2008-03-12 18:20     ` Stefan Monnier
@ 2008-03-12 19:45       ` Michael Ekstrand
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Ekstrand @ 2008-03-12 19:45 UTC (permalink / raw)
  To: info-gnus-english

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Providing the port number as a string makes it work.  Thanks!
>
> Removing it altogether should work as well: 119 is the default.

I seem to remember it generating "news" or "nntp" as the default, and
netcat doesn't understand service names.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-12 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-11 16:34 Cannot get nntp-open-via-rlogin-and-netcat to work Michael Ekstrand
2008-03-11 22:25 ` Katsumi Yamaoka
2008-03-12  0:00   ` Michael Ekstrand
2008-03-12 18:20     ` Stefan Monnier
2008-03-12 19:45       ` Michael Ekstrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).