Re: A quickie on telnet

1997-10-16 Thread ioannis

   I am the author of pass, which may well suit your needs.  This
software will be uploaded to sunsite a few weeks later; by then, the 
quatity of of documentation should improve beyond the draft stage.  Right 
now, I am willing to email you a copy in .tgz  format, or, if you 
prefer, a week later, in an un-official .deb package.



Title: pass
Version:   0.1
Entered-date:  13 October, 1997
Description:   pass(1) mimics the behavior of rsh . All commands
   are executed through telnetd at target hosts that run on
   unix; thus, no special servers are needed at the remote
   location.
   .
   Standard input to pass is piped to the remote program and
   the exit status, stdout, and stderr match those of
   the remotely executed program. Because the login procedure is
   transparent to the user, pass(1) is ideal for scripts
   that need to excecute commands on remote machines.
   .
Keywords:  telnet, pipes, scripts, remote, commands
Author:[EMAIL PROTECTED] (Ioannis Tambouras)
Maintained-by: [EMAIL PROTECTED] (Ioannis Tambouras)
Primary-site:  sunsite.unc.edu /pub/Linux/system/network/misc
   997  pass.lsm
   22 M pass-0.1.tgz
Alternate-site: None
Original-site:  None
Platforms:  g++ (or equivalent) for code compilation.
Copying-policy: GPL





-- 
Ioannis Tambouras 
[EMAIL PROTECTED], West Palm Beach, Florida
Signed pgp-key on key server. 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: A quickie on telnet

1997-10-15 Thread Carey Evans
Mike Patterson [EMAIL PROTECTED] 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

telnet assumes it's connected to a terminal.  Try one of the utilities
designed with this in mind: netcat or socket.

Also, the socket support in Tcl or Perl is probably easier for
something quick.

-- 
Carey Evans  *  http://home.clear.net.nz/pages/c.evans/  gc

kernel: Warning: possible SYN flooding. Sending cookies. 
kernel: validated probe(17f, 17f, 11557, 5010, -1645409555) 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: A quickie on telnet

1997-10-15 Thread John Goerzen
You might try the netcat program, it is specifically designed for this
and is (yipee!) a Debian package.

Mike Patterson [EMAIL PROTECTED] 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
 [EMAIL PROTECTED] . 
 Trouble?  e-mail to [EMAIL PROTECTED] .
 

-- 
John Goerzen  | Running Debian GNU/Linux (www.debian.org)
Custom Programming| Debian GNU/Linux is a free replacement for
[EMAIL PROTECTED] | 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
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: A quickie on telnet

1997-10-15 Thread Adam Shand
  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

Try this (just an example):

(echo group comp.os.linux.misc ; sleep 5 ) | telnet news.alaska.net nntp

This should work and you can can make the series inside the ()'s more
complicated if you want to do multiple commands.

Adam.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


A quickie on telnet

1997-10-14 Thread Mike Patterson

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
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .