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

Re: A quickie on telnet



You might try the netcat program, it is specifically designed for this
and is (yipee!) a Debian package.

Mike Patterson <mike@col.hp.com> writes:

> Very simply, I'm trying to telnet to a site and get some data from a script.
> In HPUX, I would do this:
> 
> echo "Alinetobesent" | telnet an.address.com 1234
> 
> And it would happily telnet to the machine and echo the command, getting me
> the results I wanted. This doesn't seem to work under any of the shells I 
> could find installed in DEBIAN, or any odd variation I could come up with.
> 
> Any ideas, or do I have to re-write in C using sockets (bleah)?
> 
> --Mike
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> debian-user-request@lists.debian.org . 
> Trouble?  e-mail to templin@bucknell.edu .
> 

-- 
John Goerzen          | Running Debian GNU/Linux (www.debian.org)
Custom Programming    | Debian GNU/Linux is a free replacement for
jgoerzen@complete.org | DOS/Windows -- check it out at www.debian.org.
----------------------+----------------------------------------------
Notice: You may purchase the right to send me unsolicited commercial e-mail
("spam") for the fee of $500 (USD) per message.  Billing can be either
pre-arranged or can occur automatically after the reception of a spam.
Failure to pay will be treated in accordance to US Code, title 47, sec. 227,
which allows unsolicited e-mail to be punishable by action to recover actual
monetary loss or $500, whichever is greater, per violation.  Sending spam
to me without payment constitutes unauthorized access to my mail daemon,
which is in violation of federal law.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: