#!/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
0 B
|👍
/👎