dradio
dradio copied to clipboard
using at does only work with the following correction
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
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