Le Dimanche 2 F�vrier 2003 10:50, Fanch a �crit :
Tout d'abord, je veux te remercier pour ta patience, pour le temps que je te
prends.
>On va reprendre le script whatis pour voir � quel endroit �a cloche.
>D'abord, quelques pr�cisions :
>- Quel est le r�sultat de la commande "manpath --path | tr : '\040'" ?
>(recopie uniquement ce qui est entre les guillements doubles)
[joel@localhost joel] $manpath --path | tr : '\040'
/usr/X11R6/man/fr /usr/X11R6/man /usr/local/man /usr/share/man/fr_FR
/usr/share/man/fr /usr/share/man
>- Quel est le r�sultat de la commande "grep --version"
>
[joel@localhost joel] $grep --version
grep (grep de GNU) 2.5
>Ensuite :
>- Est-ce que tu as un fichier /var/cache/man/whatis ?
[joel@localhost joel] $ls /var/cache/man/
fr/ fr_FR/ whatis
=> J'ai constat� � cette occasion que j'ai 3 fichiers du nom de whatis:
- /var/cache/man/fr/whatis
- /var/cache/man/fr_FR/whatis
- /var/cache/man/whatis
> - Si oui, que donne la commande "grep -iwa ^urpmi /var/cache/man/whatis"
>? (essaye de remplacer ^urpmi par ^znew ou ^zshzle car d'apr�s un de tes
>messages pr�c�dents on est s�r qu'ils sont pr�sents dans les bases whatis)
> - Si non, il y a un probl�me de cr�ation de la base, on reverra alors le
>script makewhatis
[joel@localhost joel] $grep -iwa ^urpmi /var/cache/man/whatis
[joel@localhost joel] $grep -iwa ^znew /var/cache/man/whatis
[joel@localhost joel] $grep -iwa ^zshzle /var/cache/man/whatis
par contre, cat /var/cache/man/whatis me dit (derni�re ligne):
zic (8) - time zone compiler
j'essaie donc ceci:
[joel@localhost joel] $grep -iwa ^zic /var/cache/man/whatis
zic (8) - time zone compiler
suite � cela, je renomme:
[joel@localhost joel] $su
Password:
[root@localhost joel] $mv /var/cache/man/whatis /var/cache/man/xwhatis
puis je copie:
[root@localhost joel] $cp /var/cache/man/fr_FR/whatis /var/cache/man/whatis
[root@localhost joel] $makewhatis
� partir de l�, les commandes pr�c�dentes donnent ceci:
[joel@localhost joel] $grep -iwa ^znew /var/cache/man/whatis
znew (1) - recompress .Z files to .gz files
[joel@localhost joel] $grep -iwa ^zshzle /var/cache/man/whatis
zshzle (1) - zsh command line editor
[joel@localhost joel] $grep -iwa ^urpmi /var/cache/man/whatis
urpmi (8) - rpm wrapper making installs easier for the user
urpmi.addmedia [urpmi] (8) - adds a new rpms media for use with urpmi
urpmi.removemedia [urpmi] (8) - remove a rpms media from the known medias of
urpmi
urpmi.update [urpmi] (8) - Updates packages list for specified medias
=> on avance, on avance, mais je n'atteint toujours pas le but de la
manoeuvre: trouver, en fran�ais, la commande qui fait telle ou telle chose:
[joel@localhost joel] $whatis copier
copier: nothing appropriate
[joel@localhost joel] $man -k copier
copier: nothing appropriate
[joel@localhost joel] $whatis fichier
fichier: nothing appropriate
[joel@localhost joel] $man -k fichier
fichier: nothing appropriate
[joel@localhost joel] $
--
.~.
/V\ Jo�l
// \\
/( )\
^`~'^
Une station de bus, c'est l� o� le bus s'arr�te,
Une station de trains, c'est l� o� le train s'arr�te,
Sur mon bureau, j'ai une station de travail...
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com"