DoctorD90

tclpaste

Mar 1st, 2013
340
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/bash
  2. #Name as you like (ex. tclpaste)
  3. #Run: chmod +x tclpaste
  4. #Run: dos2unix tclpaste [requires dos2unix pkg (sudo apt-get install dos2unix)]
  5. #Run: sudo cp tclpaste /PATH/TO/EXECUTABLE [if you want allow all users to use it]
  6. #
  7. #Usage:
  8. #./tclpaste file [if you have not copied in server executable folder]
  9. #tclpaste file [if you have copied in server executable folder]
  10. #
  11. #Also allowed as argument file path to file:
  12. #./tclpaste /PATH/TO/FILE/file
  13. #tclpaste /PATH/TO/FILE/file
  14.  
  15. if [ $# -ne 1 ]; then
  16.   echo "It is required only 1 file as parameter."
  17.   echo "Usage: $0 FileToPaste"
  18.   exit
  19. fi
  20. if [ ! -e $1 ]; then
  21.   echo "$0 : No such file as $1"
  22.   exit
  23. fi
  24. (cat $1 && sleep 2) | telnet tclhelp.net 55555
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment