Advertisement
C0BRA

Untitled

Dec 18th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. if [ -e $1 ]
  2. then
  3.     echo
  4. else
  5.     echo "$1 does not exist."
  6.     exit 1
  7. fi
  8.  
  9. DIR="~/MLS/lua/autorun/"
  10. CONT=`cat $1`
  11.  
  12. echo "if true then return end $CONT" | cat > ./input
  13. RET=`lua ./input 2>&1`
  14. rm ./input
  15.  
  16. if [ "$RET" = "" ]
  17. then
  18.     echo "File passed parsing; uploading..."
  19.     cat $1 | ssh c0bra@arb0c.net "cat > $DIR$1"
  20. else
  21.     echo "File did not pass parsing: "
  22.     echo $RET
  23.     exit 1
  24. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement