Yes you are probably right and sorry about that But thanks a lot for the suggestions
unnati >-----Original Message----- >From: ext Richard Heck [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 10, 2008 8:34 AM >To: Sapre Unnati (Nokia-M/Vancouver) >Cc: [email protected] >Subject: Re: [Linux-uvc-devel] How to select the lastest >picture taken by webcam > >[EMAIL PROTECTED] wrote: >> >> Hi all >> >> I have a logitech webcam working in red hat linux environment and I >> can take snap shots from it..but if I want to select a >snapshot then I >> have to go to the file where it is stored and select it...is there any >> way that I can select the latest picture taken by webcam from >> commandline?? >> >> By default the picture are named as follows >> P-mm:dd:yyyy-hr:min:sec.jpg >> >This doesn't really seem like a devel question. That said, if >you can convince whatever program is taking the snapshots to >name them this way: >P-yyyy:mm:dd-hr:min:sec.jpg then all you have to do is: >ls -1 P-*jpg | tail -n 1 >or something along those lines. If you can't get it to rename >them, then there are lots of other options, all of which would >involve reading the filenames and sorting them. You could do >it using bash, but it might be easier to do it in perl. > >rh > > _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
