Skip to content

tom-oleson/rcat

Repository files navigation

         ______
        / ____ \
   ____/ /    \ \
  / ____/   x  \ \
 / /     __/   / / RCAT
/ /  x__/  \  / /  Remote File Concatenator
\ \     \__/  \ \  Copyright (C) 2019, Tom Oleson, All Rights Reserved.
 \ \____   \   \ \ Made in the U.S.A.
  \____ \   x  / /
       \ \____/ /
        \______/

rcat

Concatenate files to remote and print remote input on standard output

usage: rcat [-d millis] [-k seconds] [-R size] [-S size] [-v] [destination] port [FILE]...

-d millis     Delay between output lines (milliseconds)
-k seconds    Keep connection open after output has finished
              to allow large response to be fully received (seconds)
-R size       Set socket receive buffer size
-S size       Set socket send buffer size
-v            Output version/build info to console

Examples:

// read from standard input and print remote input on standard output

$ rcat localhost 1234 

// pipe message with single quotes and print remote input on standard output

$ echo $"+name 'Tom Oleson'" | rcat localhost 1234 
$ echo $"\$name" | rcat localhost 1234 

// send input file to remote and save remote input to output file // keep the connection open for 30 seconds after input EOF

$ rcat -k30 localhost 1234 request.txt > response.txt

// send input file to remote and save remote input to output file // delay 200 milliseconds between output lines

$ rcat -d200 localhost 1234 request.txt > response.txt

// continuous tail input file to remote

$ tail -f app.log | rcat -k1 localhost 1234

About

Concatenate files to remote and print remote input on standard output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors