The send-to-eorg.sh bash script in the link below should be very close to what you’re looking for.