FLV download script works, but I want to enhance it

Aahz aahz at pythoncraft.com
Thu May 7 10:29:46 EDT 2009


In article <mailman.5134.1241579669.11746.python-list at python.org>,
The Music Guy  <musicguy at alphaios.net> wrote:
>
>After I download the files, I usually want to convert them to another
>video format using command line tools, and I usually convert each one
>in a separate terminal since that way they can all be converted at the
>same time rather than one-by-one. Oddly enough, converting tends to
>take longer than downloading, but converting multiple files at once is
>faster than converting them one-by-one.

Here's my download script to get you started figuring this out, it does
the wget in the background so that several downloads can run in parallel
from a single terminal window:

#!/bin/bash

echo "Downloading $1"
wget "$1" > /dev/null 2>&1 &
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list