<![CDATA[Forum Ubuntu-fr.org / Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?id=97488 Wed, 20 Aug 2008 06:04:20 +0000 FluxBB <![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2012192#p2012192 Yannick_LM a écrit :

Tu peux aussi aller déterrer celui-là, si tu veux
http://forum.ubuntu-fr.org/viewtopic.php?id=184370&p=5

bon, j'y vais alors… big_smile

]]>
Wed, 20 Aug 2008 06:04:20 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2012192#p2012192
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2011725#p2011725 Il a complètement dévié le topic, là roll

@HP:
Tu peux aussi aller déterrer celui-là, si tu veux
http://forum.ubuntu-fr.org/viewtopic.php?id=184370&p=5

]]>
Tue, 19 Aug 2008 22:30:54 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2011725#p2011725
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2011672#p2011672 Yannick_LM a écrit :

EDIT :
J'ai trouvé plus simple !

history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'| sort | uniq -c | sort -rg | head

Non, je plaisante...

sympa smile

]]>
Tue, 19 Aug 2008 22:06:57 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2011672#p2011672
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=854345#p854345 mon bof a refait la manip et cela a marché
merci pour votre aide.

]]>
Sat, 14 Apr 2007 19:07:45 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=854345#p854345
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=851685#p851685 Il est clair que le souci est list_alias.txt. Alors renomme le pour avoir le bon nom. smile

]]>
Fri, 13 Apr 2007 10:36:09 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=851685#p851685
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=850918#p850918 hello les gars ,
bonsoir

je reviens apres plusieurs reinstallations de ce script sans problemes sur plusieurs postes mais la je suis face a un hic.

J'essaye de reinstaller ce petit script chez un pote . cela me donne le message d erreur suivant sur son kubuntu 6.10.

cat: list_alias.txt : aucun fichier ou repertoire de ce type
") 1reur de syntaxe : opérande attendu (error token is "% 0 29281
' ed : -e expression n°1, caractère 6: commande inconnue: '
alias du jour :

avez vous une idée? j ai bien mon .bashrc a la fin chemin vers /alias.sh
mon bash_aliases contenant les alias  et mon list_alias.txt

ce dernier list_alias.txt possede ce nom mais avec un carré derrriere (probleme de locales?)

locale me donne:
fr.utf8

merci de votre aide

]]>
Thu, 12 Apr 2007 20:46:59 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=850918#p850918
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=791350#p791350 Dans le même genre pour les guignols de l'info.
Si on est samedi, dimanche ou lundi (à moins de 21 heures pour ce dernier), on lance l'édition du vendredi soir.
Dans les autres cas, s'il est moins de 21 h, ça sera celui de la veille, sinon celui du jour.

if test `date +%A` == samedi ; then d=1 ; elif test `date +%A` == dimanche  ; then  d=2 ; elif test `date +%A` == lundi && test `date +%H` -lt 21 ; then  d=3 ; else if test `date +%H` -ge 21; then d=0; else d=1; fi; fi; mplayer mms://vipmms.canalplus.fr/canalplus/guignols_`date --date "$d days ago" +'%y%m%d'`_a.wmv

Pour le zapping, même principe (sauf qu'on inclut le samedi) :

if test `date +%A` == dimanche  ; then  d=1 ; elif test `date +%A` == lundi && test `date +%H` -lt 21 ; then  d=2 ; else if test `date +%H` -ge 21; then d=0; else d=1; fi; fi; mplayer mms://vipmms.canalplus.fr/canalplus/zapping_`date --date "$d days ago" +'%y%m%d'`_a.wmv

En revanche j'ai choisi 21h au pif ne sachant pas à quelle heure c'est mis en ligne

Pour ma part je règle en plus le cache et le zoom (x2) de mplayer (-cache 600 -xy 2)

]]>
Sat, 10 Mar 2007 13:56:29 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=791350#p791350
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=790495#p790495 Pour ce qui est du dernier JT de France2, j'ai tenté pour m'amuser des conditions :
– s'il est 21h ou plus, on lance le 20h du jour  (il est en ligne quelques minutes  avant 21h en général)
– s'il est moins de 14h, on joue le 20h de la veille
– dans les autres cas, ça sera le 13h de la journée

if test `date +%H` -ge 21 ; then d=0 e=20 ; elif test `date +%H` -lt 14 ; then d=1 e=20 ; else d=0 e=13 ; fi; mplayer mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/horsgv/regions/siege/infos/f2/"$e"h/HD_"$e"h_20`date --date "$d days ago" +'%y%m%d'`.wmv

Je ne suis pas trop sûr de la syntaxe vu que je suis archi débutant, mais ça a l'air de marcher

]]>
Fri, 09 Mar 2007 20:12:29 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=790495#p790495
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=790027#p790027 ok c'était cela merci j'avais pas vu

]]>
Fri, 09 Mar 2007 15:22:00 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=790027#p790027
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=790002#p790002 Ça ne serait pas à cause d'un retour à la ligne après "akamai.com" ?
En tout cas il y en a un dans le code que tu as donné, j'avais du l'enlever.

]]>
Fri, 09 Mar 2007 15:10:16 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=790002#p790002
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=789966#p789966 fefe@debian:~$ jt
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) M processor         1400MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com.
STREAM_ASF, URL: mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a988.v101995.c10199.e.vm.akamaistream.net
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET...
Connecting to server a988.v101995.c10199.e.vm.akamaistream.net[194.25.26.76]: 1755...
Connected
read error:: Operation now in progress
pre-header read failed
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a988.v101995.c10199.e.vm.akamaistream.net
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET...
Connecting to server a988.v101995.c10199.e.vm.akamaistream.net[194.25.26.76]: 80...
Server returned 404:Not Found
Failed to parse header.
Failed, exiting.
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a988.v101995.c10199.e.vm.akamaistream.net
Resolving a988.v101995.c10199.e.vm.akamaistream.net for AF_INET...
Connecting to server a988.v101995.c10199.e.vm.akamaistream.net[194.25.26.76]: 80...
Cache size set to 320 KBytes
Cache fill:  0.07% (221 bytes)


Exiting... (End of file)
bash: /10199/horsgv/regio

quelqu'un a une idée

]]>
Fri, 09 Mar 2007 14:52:31 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=789966#p789966
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=789935#p789935 de rien mais je dois avoir une memerde alors ou vu que je suis sur le wifi j'ai peut etre pas assez de bandes passantes.

]]>
Fri, 09 Mar 2007 14:38:53 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=789935#p789935
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=789894#p789894 Salut,
J'ai recopié le dernier alias (en remplaçant juste par mplayer) dans mon .bashrc et ça a fonctionné, j'ai bien eu le JT d'hier.

Bien utile, merci wink

]]>
Fri, 09 Mar 2007 14:20:11 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=789894#p789894
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=789856#p789856 @gameboy cela ne marche pas . j'ai du mal a comprendre pourquoi.
sous televidilo cela marche.

mon alias:

alias jt13='mplayer mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com
/10199/horsgv/regions/siege/infos/f2/13h/HD_13h_20`date --date "0 days ago" +'%y%m%d'`.wmv'
alias jt20='xine mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com
/10199/horsgv/regions/siege/infos/f2/20h/HD_20h_20`date --date "0 days ago" +'%y%m%d'`.wmv'
alias jthier='xine mms://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com
/10199/horsgv/regions/siege/infos/f2/13h/HD_13h_20`date --date "1 days ago" +'%y%m%d'`.wmv'

]]>
Fri, 09 Mar 2007 13:54:29 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=789856#p789856
<![CDATA[Réponse à : Commandes les plus utilisés !]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=789754#p789754 @gameboy : c'est cela linux. Merci énormement les alias cela pulse.

]]>
Fri, 09 Mar 2007 12:55:35 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=789754#p789754