From 2972b08a2c331ab8e0f98104f37f7bf9807a92d3 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Fri, 10 Feb 2017 11:51:53 +0100 Subject: [PATCH] Petite astuce FIFO --- Howtoii.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Howtoii.md b/Howtoii.md index c4d82d03..c4450c1c 100644 --- a/Howtoii.md +++ b/Howtoii.md @@ -44,3 +44,14 @@ $ tail -f ~/.irc/localhost/\#channel/out 2017-02-10 09:39 coucou je parle grâce à ii ! ~~~ +# Astuce + +Pour savoir lorsque nouveaux messages et être certains de récupérer la nouvelle ligne (dans script - pour un bot par exemple), il faut rendre le fichier 'out' en un fichier FIFO => donc pas de logs possible. + +~~~ +$ rm "~/.irc/localhost/\#channel/out" +$ mkfifo "~/.irc/localhost/\#channel/out" +$ cat "~/.irc/localhost/\#channel/out" +2017-02-10 11:50 evobot: coucou evobot ! +$ +~~~