[wuug-list] [Windsor Board] Paul: Re: To Learn Linux

Stach, Dave J. stach3 at uwindsor.ca
Wed Jan 24 11:31:34 CST 2007


I'm wondering what you all think about Mohawk College's computer science programs.  Any opinions?

On Wed, 24 Jan 2007 08:49:55 -0500
 Xavier Spriet <xavier at wuug.org> wrote:
<br>> Cron won't help you run your task every 5sec, but you can probably
<br>> accomplish this by using a little shell script to schedule itself for 5
<br>> seconds in the future using the 'at' command (man at for more details.
<br>> It's not the most user-friendly utility out there but it does the job).
<br>> 
<br>> There are probably cleaner ways out there to accomplish the same thing,
<br>> but this hack should get you going pretty quickly.
<br>> 
<br>> For the compression, you will likely need to use mencoder (it is
<br>> associated to the mplayer package and they are usually bundled together
<br>> in the distros I've used). Once again, man mencoder for the usage
<br>> details.
<br>> 
<br>> As for deleting anything older than 2 days, the 'find' command is what
<br>> you want to use for that. Something along the lines of:
<br>> find . -mtime +1 -exec rm -rf {} \;
<br>> Is probably what you would want to do.
<br>> 
<br>> 
<br>> Thanks,
<br>> Xavier
<br>> 
<br>> 
<br>> 
<br>> 
<br>> 
<br>> On Tue, 2007-23-01 at 23:42 -0500, Matthew Johnston wrote:
<br>> > I have a bit of a challenge for the group.  I want to get a webcam and
<br>> > setup a cronjob or something so that it will take time-lapse pictures,
<br>> > ( 5 frames/second or so instead of the default 30 fps) save it in say
<br>> > 2-hour 'chunks' and then compress it (xvid).  And at the end delete
<br>> > anything older then 2-days.
<br>> > 
<br>> > Any suggestions? camera?
<br>> > I want to mount the camera in my vehicle so that it will record the
<br>> > entire trip so a automatic focus and long'ish view are important.
<br>> > 
<br>> 
<br>> 




More information about the wuug-list mailing list