prometoys / dradio

download or record radio stream, wrapper for streamripper
21 stars 4 forks source link

using at does only work with the following correction #11

Open fabianism opened 11 years ago

fabianism commented 11 years ago

replace the following lines with my modifications:

debug "Starte Aufname"

DATE=date +%Y_%m_%d_%H_%M

Pruefen, ob Skript aus dem Terminal oder an einer Pipe aufgerufen wird.

if [ -t 1 ] ; then streamripper $STREAM -d $TARGET -s -a "$CHANNEL-%d-$LABEL" $OPT -u $USERAGENT -A -i --quiet else streamripper $STREAM -d $TARGET -s -a "$CHANNEL-%d-$LABEL" $OPT -u $USERAGENT -A -i --quiet fi

prometoys commented 11 years ago

Hey,

sorry for the confusion. I commented the lines out, because there was some problem. It didn't worked as assumed and I didn't find time to fix it.sorry. but the "else; echo streamripper" isn't a mistake. The idea is, the skript echos the command and at or something else will execute it.

If you can debug this function or can tell me what you want to do, I'm happy to include any improvement.

Best,

Keywan