I find it is very tedious when I send file from my pc to my board.
The shortest command is scp, but it is not short.
I have to write something like this:
scp 192.168.x.x:someplace/somefile ./somefile
then, input password every time.
I hate that, it is a waste of time.
Another problem is it is hard to transfer file from my windows pc to that board or my linux pc… Best way is to use ftp, but on my board the memory is limited and precious, ftpd will take a lot of memory and never return them. I need some cross platform tools.
So after some struggle, I write a simple application. I called it “wolf”. And its real name is vof.
To send one file, it is easy to use:
it will show four number code, such as “1234”.
and to get this file, just call this command on the other pc:
then the file is copied into that position through local network safely.
source code: http://vonger.cn/upload/vof.c
linux(mips): 116KB(without upx compress: 88KB)
openwrt do not support get memory usage, just used a trick, run vof, then call “free” or “cat /proc/meminfo”, kill vof then call “free” again, one is 10888KB, one is 11004KB, so vof takes about 116KB.