![]() |
Re: Missing Command "cpio" in OS2008 on N800?
I hate busybox more and more.. it shouldn't be trying to cover important functions like 'find'.
Anyway, that 'tar' example I gave will work[1], even with busybox tar. And it's simple. EDIT: [1] Unless there are enough files to overwhelm the max. argument size (which is btw a problem which will go away, or has gone away already in new linux kernels). |
Re: Missing Command "cpio" in OS2008 on N800?
I'll try your suggestions and report results in this thread. Thanks for all of your help.
Regards, Steve |
Re: Missing Command "cpio" in OS2008 on N800?
Quote:
Did you think when I said "pass filenames" I meant that what I was suggesting would only copy the file name and not the actual file? If so, sorry for being unclear. I meant "pass filenames" to the process doing the actual copying, which would then do the actual copying of the files. As you are probably aware, "find" will just pass filenames out to the output or can be piped to the next command. Find doesn't actually pass files around. |
Re: Missing Command "cpio" in OS2008 on N800?
paulkoan - Sorry, my bad! I was not familiar with "xargs" command. I did think that your solution would copy file names only.
Duncan - Your suggestion did work! Thanks a million! I used [find /media/usb/sda1/dcim -name "*.JPG" | while read foo; do cp $foo /media/mmc2/images; done] and it worked like a charm. I now can get image files from my camera's compact flash memory card copied to the SD memory card on the Nokia IT without having to select and copy files using file manager. I have added the above command line to a script file and can launch it from the osso-statusbar-cpu applet. Many thanks, Steve |
| All times are GMT. The time now is 14:10. |
vBulletin® Version 3.8.8