Bash trick of the day

Robert La Ferla robertlaferla at comcast.net
Sun Mar 25 20:50:04 EDT 2007


On Mar 25, 2007, at 5:12 PM, David Kramer wrote:

> Along with the MythTV thing now working, I have a need to record  
> certain things from the capture card outside of MythTV (because you  
> need to navigate menus to get to the On Demand stuff, etc).  I also  
> record stuff from the line in connected to my Sirius radio.  What I  
> needed was a way to run a command for a specific length of time,  
> then kill it.  This is what I came up with:

I've created my own similar scripts to do the same thing - mostly out  
of frustration with MythTV and the desire for something simple and  
reliable.

> I can use this in conjunction with "dd if=/dev/video0  
> of=mycaptured.mpeg" to capture video for a given time, for instance.

Any advantage to using dd over cat?  I simply do "cat /dev/video >  
file.mpg"




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list