I created a small python program that communicates between a udp server in python and the sketch program. I am a little bit confused on how to transfer the python program to the arduino YUN and then run the program, either by terminal or directly from the sketch program itself. Im a little lost on how the entire file transfer system works. A little help would be greatly appreciated !
Post your code?
I went through this last week and it is frustratingly unclear how to get started with running python scripts.
You can transfer several different ways. You should have a microSD card on your board which is where you'll want to store the file. Option one is to plug the SD card into your computer and transfer the file via a simple drag-and-drop. Option two is to to use secure copy, scp, to transfer to file over the network connection. I am not an expert at that, so I will just leave you with those terms to google for more info.
Once it is on your microSD card, you call it from your arduino code like this:
Process p;
p.begin("python");
p.addParameter("/mnt/sda1/dir/with/my/python/scripts/myscripty.py");
p.run();
Good luck
My demo develop on PC, deploy on Yun may be helpful
...R
If you are on windows use winScp, very handy to transfer files to the Yun. Use scp protocol.