SHARE
TWEET

Untitled

a guest Jun 17th, 2017 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. Установить qrencode и xinetd.
  2.  
  3. 2. Создать файлик /etc/xinetd.d/qrencode с содержимым:
  4.  
  5. service qrencode
  6. {
  7.         disable = no
  8.         socket_type = stream
  9.         user = user
  10.         wait = no
  11.         port = 9009
  12.         protocol = tcp
  13.         server = /usr/bin/qrencode
  14.         server_args = -t UTF8 -o -
  15. }
  16.  
  17. 3. Добавить в /etc/services
  18. qrencode    9009/tcp    user        # qrencode server
  19.  
  20. 4. Не забыть перезапустить xinetd
  21. /etc/init.d/xinetd restart
  22.  
  23. 5. Использование:
  24. echo foo | nc 127.0.0.1 9009
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top