DoctorD90 icon

tclpaste

DoctorD90 | PRO | 03/01/13 09:26:06 AM UTC | 0 ⭐ | 337 👁️ | Never ⏰ | []
Bash |

710 B

|

None

|

0 👍

/

0 👎

#!/bin/bash
#Name as you like (ex. tclpaste)
#Run: chmod +x tclpaste
#Run: dos2unix tclpaste [requires dos2unix pkg (sudo apt-get install dos2unix)]
#Run: sudo cp tclpaste /PATH/TO/EXECUTABLE [if you want allow all users to use it]
#
#Usage:
#./tclpaste file [if you have not copied in server executable folder]
#tclpaste file [if you have copied in server executable folder]
#
#Also allowed as argument file path to file:
#./tclpaste /PATH/TO/FILE/file
#tclpaste /PATH/TO/FILE/file
 
if [ $# -ne 1 ]; then
  echo "It is required only 1 file as parameter."
  echo "Usage: $0 FileToPaste"
  exit
fi
if [ ! -e $1 ]; then
  echo "$0 : No such file as $1"
  exit
fi
(cat $1 && sleep 2) | telnet tclhelp.net 55555

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎