<![CDATA[Forum Ubuntu-fr.org / [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?id=1165951 Sun, 13 Jan 2013 19:28:59 +0000 FluxBB <![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12195791#p12195791 Pas vraiment similaire,  non...

]]>
Sun, 13 Jan 2013 19:28:59 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12195791#p12195791
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12195761#p12195761 C'est toujours, plus ou moins, un here-doc.
Et le message est très similaire.

]]>
Sun, 13 Jan 2013 19:27:52 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12195761#p12195761
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12195171#p12195171 Watael : sauf que ce que tu as fait c'est du bash, pas du perl...

]]>
Sun, 13 Jan 2013 18:44:24 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12195171#p12195171
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12195131#p12195131 Je crois que ça a un rapport avec l'ASCII art car je viens d'en faire un autre et celui la fonctionne au démarrage de mon shell !

]]>
Sun, 13 Jan 2013 18:41:16 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12195131#p12195131
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12193171#p12193171

Qu'appelles-tu "dans un terminal" ?
cowsay est en Perl et ces fichiers ".cow" sont écrits en Perl.

J'ai copié le lapin, je l'ai mis entre cat <<EOC et EOC,
et les ` font afficher un message d'erreur

bash: command substitution: ligne2: Caractère de fin de fichier (EOF) prématuré lors de la recherche du « ' » correspondant
bash: command substitution: ligne5: Erreur de syntaxe : fin de fichier prématurée

Hors, je conserve les apostrophes, j'enlève seulement les `, et il n'y a plus de message d'erreur.

]]>
Sun, 13 Jan 2013 16:20:17 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12193171#p12193171
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192921#p12192921 Le sort s'acharne … Toujours le même : 

cowsay: Can't find string terminator "EOC" anywhere before EOF at /usr/share/cowsay/cows/rabbit.cow line 4.
]]>
Sun, 13 Jan 2013 16:06:21 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192921#p12192921
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192311#p12192311 weezixx: peut-être y a-t-il un caractère spécial, invisible sur le terminal, qui fait croire à ton système que c'est la fin du fichier.

Essaie de copier-coller à partir de ce forum (vu que pour moi ça marche...) dans un nouveau fichier .cow et d'utiliser cowsay avec ce nouveau fichier...

]]>
Sun, 13 Jan 2013 15:31:11 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192311#p12192311
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192271#p12192271 Watael a écrit :

dans un terminal, sans les ` (comme l'a indiqué serged), je n'ai plus de message d'erreur.
le ; n'y est pour rien.


Qu'appelles-tu "dans un terminal" ?
cowsay est en Perl et ces fichiers ".cow" sont écrits en Perl.
As-tu exécuté ce fichier avec Perl ?

]]>
Sun, 13 Jan 2013 15:28:37 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192271#p12192271
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192251#p12192251 Et pourtant quand j'utilise un autre fichier .cow ça fonctionne ! C'est ça le pire !

]]>
Sun, 13 Jan 2013 15:25:33 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192251#p12192251
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192211#p12192211 dans un terminal, sans les ` (comme l'a indiqué serged), je n'ai plus de message d'erreur.
le ; n'y est pour rien.

]]>
Sun, 13 Jan 2013 15:25:00 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192211#p12192211
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192031#p12192031 Je ne sais pas quoi te dire. J'ai pris ton fichier et chez moi ça marche.

]]>
Sun, 13 Jan 2013 15:08:08 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192031#p12192031
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12192001#p12192001 Je refait un copier/coller du fichier même : 

##
## follow the white rabbit
##
$the_cow = <<EOC;
   $thoughts
    $thoughts
                       :oooo
                       YAAAAAAs_
               'AA.    ' AAAAAAAAs
                !AAAA_   ' AAAAAAAAs
                  VAAAAA_.   AAAAAAAAs
                   !AAAAAAAA_  AAAAAAAb
                     VVAAAAAAA\/VAAAAAAb
                       'VVAAAAAAAXXAAAAAb
                           ~~VAAAAAAAAAABb
                                 ~~~VAAAAB__
                                   ,AAAAAAAAA_
                                 ,AAAAAAAAA(*)AA_
            _nnnnnnnnnnnnnnmmnnAAAAAAAAAAAAA8GAAAAn_
        ,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAo
      ,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf~""
     ,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)
    iAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
   ,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]
   [AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]
   [AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
   [AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA~
    YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`
 __.'YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.
[AAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAA~AAAAA_
(AAAAAAAAAAAAAAAAAAAAAAAAAAAAVf`   YAAAA]
 VAAAAAAAAAAAAAAAAAAAAAAAAAAA_      AAAAAAAs
   'VVVVVVVVVVVVVVVVVVVVVVVVVV+      !VVVVVVV
EOC
]]>
Sun, 13 Jan 2013 15:06:02 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12192001#p12192001
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12191991#p12191991 salut,

le dernier EOC peut-il correspondre au premier EOC;
le point-virgule (ou son absence) peut-il avoir une influence?

]]>
Sun, 13 Jan 2013 15:05:41 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12191991#p12191991
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12191951#p12191951 Je réitère ma question :
Es-tu sûr du contenu du fichier /usr/share/cowsay/cows/follow_the_white_rabbit.cow sur ton système ?

]]>
Sun, 13 Jan 2013 15:00:55 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12191951#p12191951
<![CDATA[Réponse à : [Résolu] Cowsay pas ce que je veux …]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=12191901#p12191901 Toujours la même réponse quand je fais ta ligne de code tiramiseb

mister_why@JARVIS:~$ cowsay -f follow_the_white_rabbit "hello world"
cowsay: Can't find string terminator "EOC" anywhere before EOF at /usr/share/cowsay/cows/follow_the_white_rabbit.cow line 4.
]]>
Sun, 13 Jan 2013 14:54:22 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=12191901#p12191901