Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > uk.comp.sys.mac > #119756
| From | Paul Sture <nospam@sture.ch> |
|---|---|
| Newsgroups | uk.comp.sys.mac |
| Subject | Re: High Sierra - telnet gone? |
| Date | 2017-10-05 12:41 +0200 |
| Organization | PostgreSQL and SQLite |
| Message-ID | <vrehae-4792.ln1@news2.chingola.ch> (permalink) |
| References | (4 earlier) <8k9fae-hlk1.ln1@news2.chingola.ch> <f3kciiF95c5U2@mid.individual.net> <f3ku1rFdls2U1@mid.individual.net> <f3l0t3Feak0U1@mid.individual.net> <f3mb3sFn7rhU1@mid.individual.net> |
On 2017-10-05, Ian McCall <ian@eruvia.org> wrote:
> On 2017-10-04 21:07:47 +0000, Huge <Huge@nowhere.much.invalid> said:
>
>>
>>> telnet is for playing with socket-based APIs and services.
>>
>> For which netcat is better.
>
> Hmm. Can you use netcat for interactive?
I believe you can, but first off, when everyone says 'netcat', they
usually mean 'nc'. The command 'netcat' isn't there on High Sierra, the
command 'nc' is.
I started using 'socat' several years ago, which claims to be a
rerwritten netcat++.
<http://www.dest-unreach.org/socat/>
socat - Multipurpose relay
Abstract
what: "netcat++" (extended design, new implementation)
OS: AIX, BSD, HP-UX, Linux, Solaris e.a. (UNIX)
lic: GPL2
inst: tar x...; ./configure; make; make install
doc: README; socat.html, socat.1; xio.help
ui: command line
exa: socat TCP6-LISTEN:8080,reuseaddr,fork PROXY:proxy:www.domain.com:80
I used it successfully for the specific case where an emulator author
had made some assumptions which made life tricky using the traditional
telnet client to connect to its console.
I'd forgotten this, but the command I devised made it into that emulator's
manual. This connects to a RAW socket on localhost port 20000:
socat -,raw,echo=0,escape=0x1c tcp:127.0.0.1:20000
The escape 0x1C is Ctrl-\; it allows you to escape from socat.
> ie. the:
>
> telnet some.host.invalid
> EHLO
> MAIL From:
> ....etc...
>
>
> scenario?
>
>
> Note that mail testing is just an example, it's more getting access to
> interactive APIs on the other end. -Not- piping commands in or reading
> from a text file, pure interactive typing.
>
> If you can do that I'd be interested.
The basic answer is yes.
--
Everybody has a testing environment. Some people are lucky enough to
have a totally separate environment to run production in.
Back to uk.comp.sys.mac | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-04 00:29 +0100
Re: High Sierra - telnet gone? dempson@actrix.gen.nz (David Empson) - 2017-10-04 13:26 +1300
Re: High Sierra - telnet gone? italiancar@gmail.com (Steve H) - 2017-10-04 07:49 +0100
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-04 09:27 +0100
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-04 08:48 +0000
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-04 13:13 +0200
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-04 13:09 +0200
Re: High Sierra - telnet gone? nospam <nospam@nospam.invalid> - 2017-10-04 10:20 -0400
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-04 16:59 +0200
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-04 15:20 +0000
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-04 21:19 +0100
Re: High Sierra - telnet gone? Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2017-10-04 21:25 +0100
Re: High Sierra - telnet gone? nospam <nospam@nospam.invalid> - 2017-10-04 16:32 -0400
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-04 21:07 +0000
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-05 10:08 +0100
Re: High Sierra - telnet gone? richard@cogsci.ed.ac.uk (Richard Tobin) - 2017-10-05 09:17 +0000
Re: High Sierra - telnet gone? real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida) - 2017-10-06 15:50 +0100
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-05 09:27 +0000
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-05 11:52 +0100
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-05 11:04 +0000
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-05 12:38 +0100
Re: High Sierra - telnet gone? Ian McCall <ian@eruvia.org> - 2017-10-05 12:42 +0100
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-05 11:44 +0000
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-05 13:29 +0200
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-05 12:41 +0200
Re: High Sierra - telnet gone? nospam <nospam@nospam.invalid> - 2017-10-04 11:35 -0400
Re: High Sierra - telnet gone? Jaimie Vandenbergh <jaimie@sometimes.sessile.org> - 2017-10-04 17:55 +0100
Re: High Sierra - telnet gone? Paul Sture <nospam@sture.ch> - 2017-10-05 02:14 +0200
Re: High Sierra - telnet gone? Chris Ridd <chrisridd@mac.com> - 2017-10-04 19:13 +0100
Re: High Sierra - telnet gone? stk.usenet@haller-berlin.de (Stefan Haller) - 2017-10-05 09:10 +0200
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-05 08:53 +0000
Re: High Sierra - telnet gone? nospam <nospam@nospam.invalid> - 2017-10-05 09:49 -0400
Re: High Sierra - telnet gone? italiancar@gmail.com (Steve H) - 2017-10-07 15:06 +0100
Re: High Sierra - telnet gone? Huge <Huge@nowhere.much.invalid> - 2017-10-07 15:55 +0000
Re: High Sierra - telnet gone? Ray <buggeroff@outlook.corn> - 2017-10-08 06:53 +0100
csiph-web