awk question: conve...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] awk question: converting to/from ascii-armoured and binary...

4 Posts
4 Users
0 Reactions
67 Views
Posts: 7076
Full Member
Topic starter
 

I've got a linux machine (well, an Android one) which is running remotely about 3 miles away.

I want to upload a file, but sadly all I've got for uploading files are:

- go over there and put something on the (probably broken) SD card
- use the serial port

I'd like to use something like XMODEM, but this machine runs so slowly that teraterm times out (something to do with actually being an FPGA).

But I *can* take a binary file, convert it to ASCII, send the ASCII text across and then convert back on the other end.

If I had perl or python this would be a breeze, but all its got is awk and whatever else is in busybox.

Any suggestions?

(The other alternative is to rebuild the root filing system with the file I want and then reboot remotely but that's clearly cheating).

EDIT: plus rebooting takes about 20 minutes.

Thanks!


 
Posted : 11/07/2014 6:56 pm
Posts: 7076
Full Member
Topic starter
 

OK, looks like nothing is going to work, as I can't reliably pass files over just dumping them to the terminal.


 
Posted : 11/07/2014 7:15 pm
Posts: 31206
Full Member
 

No idea if it helps, but it sounds like the program you are looking for is uuencode (which converts binary to ASCII).


 
Posted : 11/07/2014 7:59 pm
Posts: 0
Free Member
 

I'll ask the obvious just to rule it out: You running either SSH or FTP server on the box?


 
Posted : 11/07/2014 8:29 pm
Posts: 8
Free Member
 

According to the busybox website busybox contains uudecode. So uuencode it then transfer and uudecode.

Unless you can log into your android box and use wget (also in busybox) to drag file file back.

[url= http://www.busybox.net/downloads/BusyBox.html ]Command list for busybox[/url]


 
Posted : 11/07/2014 8:40 pm

6 DAYS LEFT
We are currently at 95% of our target!