I am configuring my raspberry pi device of the serial console (like this https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/overview)
How can I do the equivalent of scp? (copy files to the raspberry pi)
Currently I am just going cat > newfile.py
and then pasting in the file content.
Maybe the following matrix will explain what I am missing:
over network | over serial
--------------------------------------------------------------
ssh pi@192.168.1.10 | picocom -b 115200 /dev/ttyU*
--------------------------------------------------------------
scp script.py pi@192.168.1.10:~ | ????????????????
additional stuff:
- I would like to put this in a script, so a non interactive way would be preferable.
- All of your suggestions sound great.. but an example would be really handy.