Reply
Thread Tools
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#11
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).
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.

Last edited by TA-t3; 2008-03-12 at 14:42.
 
Posts: 13 | Thanked: 5 times | Joined on Feb 2006 @ Oregon
#12
I'll try your suggestions and report results in this thread. Thanks for all of your help.

Regards,

Steve
 
Posts: 422 | Thanked: 244 times | Joined on Feb 2008
#13
Originally Posted by saklotz View Post

paulkoan - In my original post, I indicated that I am trying to copy files and not file names. Sorry, but I don't think your suggestion will do the job.
The busybox limits mean that my suggestion wouldn't work. But I don't get what you meant.

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.
 
Posts: 13 | Thanked: 5 times | Joined on Feb 2006 @ Oregon
#14
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:21.