#!/usr/bin/perl -w # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 (GPLv3) # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Copyright 2009 Matt Grill # Website: www.mattgrill.com # Version 0.1 # Purpose: This script runs the tod2mpeg script multiple times for a list from STDIN. # Dependencies: tod2mpeg script in your path. # Usage: filelist | tod2mpeg-multi # eg. ls *.tod | tod2mpeg-multi while () { print "Running tod2mpeg for file: $_"; system "tod2mpeg $_"; }