Petite astuce FIFO
This commit is contained in:
parent
85db7fb240
commit
2972b08a2c
11
Howtoii.md
11
Howtoii.md
|
@ -44,3 +44,14 @@ $ tail -f ~/.irc/localhost/\#channel/out
|
|||
2017-02-10 09:39 <evouser> 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 <user> evobot: coucou evobot !
|
||||
$
|
||||
~~~
|
||||
|
|
Loading…
Reference in a new issue