Download arduino sketch from linux side ?

I want to build an application on the linux side of Yun that can take a sketch binary and download it to the arduino side. Any pointerss how to do this or if somebody already has done this ? The Arduino SDK is doing this but i am trying to reverse to reverse engineer/read through all the SDK source to figure out what it does. Any documentation ?

Thanks

http://forum.arduino.cc/index.php?topic=209587.msg1542895#msg1542895

Muchas gracias. run-avrdude. Nice.

Hi

give a look to my webapp, SketchUploader:
http://www.lucadentella.it/2014/02/10/yun-sketch-uploader/