Friday, November 9, 2012

Get youtube video info from id

https://gdata.youtube.com/feeds/api/videos/jjsUDlwhqsc?v=2

the jjsUD... is the id of the video

Piping the output of a log file into another program

to "follow" a log file, use:

tail -F <filename>

the output can be put into a fifo named pipe by doing:

mkfifo /tmp/nadafifo
tail -F access.log > /tmp/nadafifo&

Now use can do whatever you want with /tmp/nadafifo

e.g.
cat /tmp/nadafifo