On Tue, Mar 10, 2009 at 4:58 PM, Roger <[email protected]> wrote: > On Tue, 2009-03-10 at 08:37 -0500, Mike Isely wrote: > >> > r...@beagleboard:/# cp /dev/video0 /home/root/test.mpeg >> >> I usually use 'cat' here out of habit, but the 'cp' command should work >> (and I doubt that using 'cp' could result in the problems below). > > The old behavior of cp would try coping the device file to the new > location, which would obviously fail. > > Interesting that cp can now be used to "cat" a device file. > > -rwxr-xr-x 1 root root 31K Aug 5 2008 /bin/cat > -rwxr-xr-x 1 root root 76K Aug 5 2008 /bin/cp > > Using cp instead of cat is going to cost you more then twice the memory. > And, again although negligible, it might cost a few extra CPU cycles > each time it loops.
This is good to know especially on the beagleboard platform. I'll use cat from now on. Do you know of a way that may be even faster and leaner than cat? _______________________________________________ pvrusb2 mailing list [email protected] http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
