Watching series; I don’t want to touch my computer

When I watch series I don’t want to touch my computer and I watch all episodes in one fell swoop; if I do something like mplayer *.mpg it crashes, so that doesn’t work. This does, run like;


./play "*.mpg"

or


./play "*.avi"

The code;


#!/usr/bin/perl

$a = "";
foreach(@ARGV) {
$a.=" " if $a;
$a.=$_;
}

while(1){foreach(glob("$a")){`mplayer -fs "$_"`}}

Be the first to leave a comment. Don’t be shy.

Join the Discussion

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>