Uploading Sketch via command line

Hi all,

Sorry if this is a somewhat basic question, but I've searched quite a bit and can't seem to find the answer.

How can I upload a compiled sketch just using a command line invocation? My arduino controlled device is now installed in our server room and my access to the Linux machine it's connected to is via an ssh session. If I want to update the small sketch running on it, what's the command I need to use?

Thanks,

Steve

Hi, yes its usually done from within a "Makefile". Here is what is produced:

$ make upload
/home/rick/arduino-0018/hardware/tools/avrdude -V -F -C /home/rick/arduino-0018/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyUSB* -c stk500v1 -b 57600 -U flash:w:applet/binary_clock2.hex

generalized:
avrdude -V -F -C <avrdude.conf> -p -P -c stk500v1 -b -U flash:w:.hex

you can download the make file from:
Arduino Forum ? Software ? Development ? Makefile for 0018 -- Assember listing
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265576847

Is this enough information?

Does this method overwrite the bootloader on ATmega?

Excellent, that's exactly what I was after.

Steve

Hi AlphaZeta, this (and "make upload") works just like the Arduino IDE. The avedude program works with the bootloader to upload the sketch (application/program/...)

Thanks rfrankla, I will have to give it a try.