home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!pipex!warwick!sunserver1.aston.ac.uk!uhura!evansmp
- From: evansmp@uhura.aston.ac.uk (Mark Evans)
- Subject: Re: looking for useful TCP program
- Message-ID: <1992Nov18.121931.14012@aston.ac.uk>
- Sender: usenet@aston.ac.uk (Usenet administrator)
- Nntp-Posting-Host: uhura
- Organization: Aston University
- X-Newsreader: TIN [version 1.1 PL7]
- References: <Bxt98z.6I0@cs.bham.ac.uk>
- Date: Wed, 18 Nov 1992 12:19:31 GMT
- Lines: 37
-
- Reuben O Wells (row@cs.bham.ac.uk) wrote:
- : Hi all,
- :
- : I am looking for a couple programs, one which takes a hostname and optionally
- : a port number, reads data from stdin and the other which runs on the remote
- : machine writes all data received on a specified port to stdout.
- :
- : Why ? I don't really want to run NFS and want to be able to do remote
- : backups, I do have the TCP/IP suite installed and would like to use
- : it! For example:
- :
- : on my local machine ...
- : tar -cvf / - | senddata <hostname> <port>
- :
- : on the remote machine ...
- : recdata <port> > /dev/nrst8
-
- The code to do this is fairly trivial.
- Just one point run the recpdata program, which you could write as
- recdata <file> <port>, first.
- It should create a socket
- bind it to <port>
- do an accept
- loop until EOF reading from the socket and writing to the output.
-
- (it might be better to set this up as a well known service, run by inetd,
- then that will handle to socket details and you can use something
- equivalent to cat > /dev/whatever in inetd.conf)
-
- For the other end, connect to the socket, read from stdin, write to socket
- Until EOF on stdin.
-
- --
- -------------------------------------------------------------------------
- Mark Evans |evansmp@uhura.aston.ac.uk
- +(44) 21 TBA (Home) |evansmp@cs.aston.ac.uk
- +(44) 21 359 6531 x4039 (Office) |
-