From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <003501c428e5$39cdffc0$48db7d50@SOMA> From: "boyd, rounin" To: <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [9fans] telnet Date: Fri, 23 Apr 2004 05:44:04 +0200 Topicbox-Message-UUID: 688b2070-eacd-11e9-9e20-41e7f4b1d025 it seems that telnet has departed from the man page and the utility of using it (albiet not strictly correctly) with smtp, pop, ftp etc ... has also been lost. here is a diff so you can: telnet host telnet host!service service can be textual or numeric. as far as i can see 'net' [see netmkaddr] will always be 'tcp'. brahma% diff /n/sources/plan9/sys/src/cmd/ip telnet.c 41c41 < fatal("usage: telnet [-Cdnr] net!host[!service]", 0, 0); --- > fatal("usage: telnet [-Cdnr] host[!service]", 0, 0); 80a81,85 > enum { > Thost, > Tservice, > }; > 82c87 < * dial and return a data connection --- > * dial host[!service] and return a data connection 89a95,96 > int n; > char *to[2]; 91c98,110 < name = netmkaddr(dest, "tcp", "telnet"); --- > to[Thost] = dest; > to[Tservice] = "telnet"; > > switch (n = getfields(dest, to, nelem(to), 0, "!")) { > case 2: > case 1: > break; > > default: > usage(); > } > > name = netmkaddr(to[Thost], "tcp", to[Tservice]); all done with drawterm [to NY], mousepad and 2 buttons. i have not hacked the man page into shape.