Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Установить qrencode и xinetd.
- 2. Создать файлик /etc/xinetd.d/qrencode с содержимым:
- service qrencode
- {
- disable = no
- socket_type = stream
- user = user
- wait = no
- port = 9009
- protocol = tcp
- server = /usr/bin/qrencode
- server_args = -t UTF8 -o -
- }
- 3. Добавить в /etc/services
- qrencode 9009/tcp user # qrencode server
- 4. Не забыть перезапустить xinetd
- /etc/init.d/xinetd restart
- 5. Использование:
- echo foo | nc 127.0.0.1 9009
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement