Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ -e $1 ]
- then
- echo
- else
- echo "$1 does not exist."
- exit 1
- fi
- HOST="[email protected]"
- DIR="~/MLS/lua/autorun/"
- CONT=`cat $1`
- echo "if true then return end $CONT" | cat > ./input
- RET=`lua ./input 2>&1`
- rm ./input
- if [ "$RET" = "" ]
- then
- echo "File passed parsing; uploading..."
- cat $1 | ssh c0bra@arb0c.net "cat > $DIR$1"
- else
- echo "File did not pass parsing: "
- echo $RET
- exit 1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement