[Linux-bruxelles] y aurait-il un gros bug dans at ?
Aldo
info at brlspeak.net
Jeu 14 Jan 16:52:13 CET 2010
Bonjour Juliane & all.
On Thu, Jan 14, 2010 at 01:58:40PM +0100, Juliane De Moerlooze wrote:
> bonjour
>
> > Supposons que ce que tu dis est vrai, ya des centaines de membres de ce
> > forum utilisant Debian !!!!!!!!!!!!!!!!!
>
> effectivement j'utilise at de loin en loin et je l'ai utilisé depuis le
> 1er janvier
> pour que l'on puisse t'aider aldo, je pense que tu devrais nous donner
> plus d'indications
OK; voici tout ce que j'ai:
1) tant sous Lenny que Hardy ça ne marche pas
2) j'ai évidemment réessayé en entrant 01 pour janvieer au lieu de 1 tout
court, ça ne change rien non plus
3) pour pouvoir faire l'essai grandeur nature j'ai mis en pj ce que je peux:
3-1: progstation, cad le script dont il est question
3-2: whichstation.lst cad la liste des postes sur laquelle retombent
l'ensemble des scripts rec/dump/which/prog-station qui font partie
du set, rec* enregistre en wav, dump en mp3, prog préprogramme et
which* streame live la radio choisie
3-3: ajoutez si utile mplayer vu que c'est indispensable
3-4: cp les pièces jointes dans /usr/local/bin
4) Sortie d'un test (typescript)
That's it! avis aux chevronnés que vous êtes (note progstation c'est pas moi
qui m'en suis occupé, ça me dépasse totalement!)
Amicalement,
Aldo.
-------------- section suivante --------------
#!/bin/bash
#
# RecStation-NG - The ultimate easy radio station recording script
# N)ew G)eneration Edition
#
# O. La Rosa - http://whichstation.blinuxman.net - 19-06-2004 - Public
# Latest release: 27-10-2009
# Based on a script found here: news:be.comp.os.linux
# Feel free to visit http://blinuxman.net providing us with new urls
# (see online form to contact us).
#
# Variables:
#
# - Onscreen list:
P[1]=" 1 ACBRadio en_us "
P[2]=" 2 BeOne be_nl "
P[3]=" 3 Classic21 be_fr "
P[4]=" 4 DreamFactory en_de "
P[5]=" 5 Europe1 fr_fr "
P[6]=" 6 Europe2 fr_fr "
P[7]=" 7 FIP fr_fr "
P[8]=" 8 FranceBleu fr_fr "
P[9]=" 9 FranceCulture fr_fr "
P[10]=" 10 FranceInfo fr_fr "
P[11]=" 11 FranceInter fr_fr "
P[12]=" 12 GrooveSalad en_gb "
P[13]=" 13 JoeFM be_nl "
P[14]=" 14 LaPremiere be_fr "
P[15]=" 15 LeMouv fr_fr "
P[16]=" 16 MNM be_nl "
P[17]=" 17 NRJ fr_fr "
P[18]=" 18 PureFM be_fr "
#
Q[1]=" 19 Q-Music be_nl "
Q[2]=" 20 Radio1 be_nl "
Q[3]=" 21 Radio2 be_nl "
Q[4]=" 22 Radio3 nl_nl "
Q[5]=" 23 RadioCampus be_fr "
Q[6]=" 24 RadioNostalgie eu_** "
Q[7]=" 25 RFI fr_fr "
Q[8]=" 26 RIM fr_fr "
Q[9]=" 27 RireEtChansons fr_fr "
Q[10]=" 28 RMC mc_fr "
Q[11]=" 29 RTL fr_fr "
Q[12]=" 30 SkyRock fr_fr "
Q[13]=" 31 SlowRadio nl_be "
Q[14]=" 32 SpamRadio en_us "
Q[15]=" 33 StudioBrussel be_nl "
Q[16]=" 34 TonicLounge en_de "
Q[17]=" 35 TopRadio be_nl "
Q[18]=" 36 Vivacite be_fr "
#
# URL-list:
LST="/usr/local/bin/whichstation.lst"
#
# Streaming variables:
#
# Rec variables:
# - Date-parameter:
DAT="\`date -d 'today' +%d-%m-%Y_%H.%M.%S\`" # EU
# - Default Media Player (console or X):
#MP="mplayer -quiet -vo null -af volnorm=2 -nortc -cache 256 -nosound -ao pcm:file=rec_$DAT.wav -osdlevel 1 -nojoystick -nolirc -nomouseinput -quiet"
MP="mplayer -vc null -vo null -nortc -ao pcm:file=rec_$DAT.wav -nojoystick -nolirc -nomouseinput -quiet"
# Running!!!
#
clear
setleds +num
if [ "$1" == "" ]; then
echo " =-=-=-=-=-=-=-= Which station would you like to record from? =-=-=-=-=-=-=-=
"
for i in $(seq 1 18); do
echo -e "${P[$i]}\t${Q[$i]}"
done
echo -ne "\a"
echo "
------------------------------------------------------------------------------"
read -p" Enter the number of your choice (or give it as an argument to the script): " K
else
K="$1"
fi
test -z "$K" && clear && echo "Goodbye!" && exit
S="`sed -n \"$K\"p \"$LST\"`"
clear
echo "CTRL+C to exit . . . "
echo -e "\nWhen do you want to start the recording?"
s_day=-1
while [ $s_day -lt 1 -o $s_day -gt 31 ]; do
read -p " Start day of the month (1-31): " s_day
test "$s_day" = "" && s_day=-1
done
s_month=-1
while [ $s_month -lt 1 -o $s_month -gt 12 ]; do
read -p " Start month (1-12): " s_month
test "$s_month" = "" && s_month=-1
done
s_hour=-1
while [ $s_hour -lt 0 -o $s_hour -gt 23 ]; do
read -p " Start hour: " s_hour
test "$s_hour" = "" && s_hour=-1
done
s_min=-1
while [ $s_min -lt 0 -o $s_min -gt 59 ]; do
read -p " Start minute: " s_min
test "$s_min" = "" && s_min=-1
done
e_day=-1
while [ $e_day -lt 1 -o $e_day -gt 31 ]; do
read -p " End day of the month (1-31): " e_day
test "$e_day" = "" && e_day=-1
done
e_month=-1
while [ $e_month -lt 1 -o $e_month -gt 12 ]; do
read -p " End month (1-12): " e_month
test "$e_month" = "" && e_month=-1
done
e_hour=-1
while [ $e_hour -lt 0 -o $e_hour -gt 23 ]; do
read -p " End hour: " e_hour
test "$e_hour" = "" && e_hour=-1
done
e_min=-1
while [ $e_min -lt 0 -o $e_min -gt 59 ]; do
read -p " End minute: " e_min
test "$e_min" = "" && e_min=-1
done
echo -e "\nStart new job at $s_day $s_month $s_hour $s_min:"
echo -e " " $MP $S
echo "Job will be killed on $e_day $e_month $e_hour $e_min."
PID=`mktemp ~/.\`basename $0\`.XXXXX`
echo "
echo \$\$ > $PID
$MP $S
" | \
at `printf "%02i:%02i %02i%02i%02i" $s_hour $s_min $s_month $s_day 9` 2> /dev/null
echo "pkill -P \`cat $PID\`; rm -f $PID" | \
at `printf "%02i:%02i %02i%02i%02i" $e_hour $e_min $e_month $e_day 9` 2> /dev/null
-------------- section suivante --------------
http://acbradio.org:6246 ##ACBRadio
http://streams.lazernet.be:3660 ##BEOne
http://streaming.rtbf.be:8000/2128xrtbf ##Classic21
http://ubuntu.hbr1.com:19800/ambient.ogg ##DreamFactory
mms://viplagardere.yacast.net/encodereurope1 ##Europe1
mms://viplagardere.yacast.net/encodereurope2 ##Europe2
http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u ##FIP
http://www.tv-radio.com/station/france_bleu_ile-de-france_mp3/france_bleu_ile-de-france_mp3-128k.m3u ##FRBleu (Ile de France)
http://mp3.live.tv-radio.com/franceculture/all/franceculturehautdebit.mp3 ##FRCulture
-playlist http://str2.creacast.com/france_info_64.m3u ##FRInfo
http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3 ##FRInter
-slave -playlist http://www.somafm.com/groovesalad.pls ##GrooveSalad
http://streaming.4fm.be/4fm_hi?MSWMExt=.asf ##JoeFM
-slave -playlist http://www4.rtbf.be/rtbf_2000/radios/prem128.m3u ##LaPremiere
http://mp3.live.tv-radio.com/lemouv/all/lemouvhautdebit.mp3 ##LeMouv
http://mp3.streampower.be/mnm-high.mp3 ##MNM
-vc dummy -hardframedrop http://viplagardere.yacast.net/encodernrj ##NRJ
-slave -playlist http://www4.rtbf.be/rtbf_2000/radios/pure128.m3u ##PureFM
-playlist http://www.q-music.be/asx/q_high.asx ##Q-music.be
http://mp3.streampower.be/radio1-high.mp3 ##Radio1.be
http://mp3.streampower.be/ra2vlb-high.mp3 ##Radio2.be
mms://livemedia.omroep.nl/radio3-bb ##Radio3.nl
-playlist http://radiocampus.ulb.ac.be/streaming/streamstereo.pls ##RadioCampus.be
http://nostalgie.t-n-media.de:8000 ##RadioNostalgie
http://mp3.live.tv-radio.com/rfiafrique/all/rfiafrique-64k.mp3 ##RFI
http://sd-1634.dedibox.fr:8001/stream.ogg ##RIM
mms://vipnrj.yacast.net/encoderrireetchansons ##RireEtChansons
mms://viplagardere.yacast.net/encoderrmc ##RMC
http://streaming.radio.rtl.fr:80/rtl-1-44-96 ##RTL FR
-playlist http://cache.yacast.fr/V4/skyrock/skyrock.asx ##SkyRock
-slave -playlist http://streams.slowradio.com/slowradio.pls?id=winamp ##SlowRadio
http://spamradio.com/listen ##SpamRadio
http://mp3.streampower.be/stubru-high.mp3 ##StudioBrussel
http://ubuntu.hbr1.com:19800/tronic.ogg ##TonicLounge
http://ns24907.ovh.net:8000 ##TopRadio
-slave -playlist http://www4.rtbf.be/rtbf_2000/radios/vivabxl.m3u ##VivaCite
-------------- section suivante --------------
Script started on jeu 14 jan 2010 16:27:47 CET
olr at jupiter:~$ progstation
[H[JKDGETLED: Invalid argument
Error reading current led setting. Maybe stdin is not a VT?
# (le msg d'erreur est probab dû au fait que je lance d'abord script puis
# progstation qui est le script de préprogrammation de l'heure
# d'enregistrement)
=-=-=-=-=-=-=-= Which station would you like to record from? =-=-=-=-=-=-=-=
1 ACBRadio en_us 19 Q-Music be_nl
2 BeOne be_nl 20 Radio1 be_nl
3 Classic21 be_fr 21 Radio2 be_nl
4 DreamFactory en_de 22 Radio3 nl_nl
5 Europe1 fr_fr 23 RadioCampus be_fr
6 Europe2 fr_fr 24 RadioNostalgie eu_**
7 FIP fr_fr 25 RFI fr_fr
8 FranceBleu fr_fr 26 RIM fr_fr
9 FranceCulture fr_fr 27 RireEtChansons fr_fr
10 FranceInfo fr_fr 28 RMC mc_fr
11 FranceInter fr_fr 29 RTL fr_fr
12 GrooveSalad en_gb 30 SkyRock fr_fr
13 JoeFM be_nl 31 SlowRadio nl_be
14 LaPremiere be_fr 32 SpamRadio en_us
15 LeMouv fr_fr 33 StudioBrussel be_nl
16 MNM be_nl 34 TonicLounge en_de
17 NRJ fr_fr 35 TopRadio be_nl
18 PureFM be_fr 36 Vivacite be_fr
------------------------------------------------------------------------------
Enter the number of your choice (or give it as an argument to the script): 5
# (j'ai donc choisi d'enregistrer 5 min. des news de 17h sur Europe1)
[H[JCTRL+C to exit . . .
When do you want to start the recording?
Start day of the month (1-31): 14
Start month (1-12): 1
Start hour: 17
Start minute: 00
End day of the month (1-31): 14
End month (1-12): 1
End hour: 17
End minute: 05
Start new job at 14 1 17 00:
mplayer -vc null -vo null -nortc -ao pcm:file=rec_`date -d 'today' +%d-%m-%Y_%H.%M.%S`.wav -nojoystick -nolirc -nomouseinput -quiet mms://viplagardere.yacast.net/encodereurope1 ##Europe1
Job will be killed on 14 1 17 05.
# (ce qui s'affiche là est bien ce que le script progstation est sensé
# lancer, et avant janvier il le faisais, et il s'agit encore de la version
# de novembre du même progstation, je le précise. Mais dans atq y a rien)
olr at jupite:~$ atq
olr at jupiter:~$
# (alors il me reste plus qu'à faire exit et envoyer la sortie pour que vous
la voyiez aussi; j'y comprends rien!)
Script done on jeu 14 jan 2010 16:29:16 CET
Plus d'informations sur la liste de diffusion Linux-bruxelles