Exécuter un fichier HLP

Résolu/Fermé
mimi2060 - 12 mars 2008 à 23:10
mamiemando Messages postés 33582 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 17 mars 2025 - 13 mars 2008 à 10:29
Bonjour,
Est ce que je peux lancer un fichier *.HLP sous linux fedora core 4,
j'ai essayé la commande ./ *.HLP mais il m'affiche : cannot execute binary file,
Merci d'avance.

5 réponses

mamiemando Messages postés 33582 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 17 mars 2025 7 833
12 mars 2008 à 23:18
Un fichier hlp est un fichier d'aide windows, non ? Pourquoi veux-tu l'exécuter ?
0
je veux faire un fichier d'aide pour un logiciel fonctionnant sous linux.
0
mamiemando Messages postés 33582 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 17 mars 2025 7 833
12 mars 2008 à 23:28
Sous linux les fichiers d'aides sont les "man". Exemple avec ifconfig, pour t'inspirer :
(mando@aldur) (~) $ whereis ifconfig
ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz

Le manuel de ifconfig est compressé dans un fichier gz dans /usr/share/man/man8/ifconfig.8.gz. Mais on peut visualiser le contenu de ce fichier non compressé par exemple avec vim :
vim /usr/share/man/man8/ifconfig.8.gz

Ce qui donne :
.TH IFCONFIG 8 "2007-12-02" "net-tools" "Linux Programmer's Manual"
.SH NAME
ifconfig \- configure a network interface
.SH SYNOPSIS
.B "ifconfig [-v] [-a] [-s] [interface]"
.br
.B "ifconfig [-v] interface [aftype] options | address ..."
.SH DESCRIPTION
.B Ifconfig
is used to configure the kernel-resident network interfaces.  It is
used at boot time to set up interfaces as necessary.  After that, it
is usually only needed when debugging or when system tuning is needed.
.LP
If no arguments are given,
.B ifconfig
displays the status of the currently active interfaces.  If
a single
.B interface
argument is given, it displays the status of the given interface
only; if a single
.B -a
argument is given, it displays the status of all interfaces, even
those that are down.  Otherwise, it configures an interface.

Donc tu vois que la mise en forme est relativement simple à mettre en place :
.TH => titre (nom de la commande, section de man, date...)
.B => ligne qui suit en gras,
.SH => titre, .br => retour à la ligne,
.LP => nouveau paragraphe,
.TP => nouveau paragraphe tabulé,
.I => ligne soulignée.

Pour voir le rendu correpondant tape simplement
man ifconfig

Bonne chance
0
Merci beaucoup,
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
mamiemando Messages postés 33582 Date d'inscription jeudi 12 mai 2005 Statut Modérateur Dernière intervention 17 mars 2025 7 833
13 mars 2008 à 10:29
Pas de soucis, bonne continuation ;-)
0