* [Comm] squid redirector wrap
@ 2003-11-11 6:22 Maxim.Savrilov
0 siblings, 0 replies; only message in thread
From: Maxim.Savrilov @ 2003-11-11 6:22 UTC (permalink / raw)
To: Сообщество
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
Здравствуйте!
Есть прикрученный squidguard, хочу попробовать параллельно
прикрутить viralator - антивирус для сквида.
Так как два редиректора прикрутить нет возможности, то хочется написать
некий wrapper, который бы получал строку с урлем, передавал бы ее
squidguard, потом получал от него вывод, и передавал его viralator
По-идее, выглядеть это должно так
#!/bin/bash
while [ 1 ]; do
read stroka
stroka = `echo $stroka | /usr/bin/squidguard | /usr/bin/viralator`
echo $stroka
done
но я видел примеры редиректоров только на perl и там устанавливается
переменная $|=1, чтобы не ждать, пока буфера заполнятся, а сразу из
них вывод делать.
Есть ли в bash что-то подобное? или на perl придется?
--
Я ем все что дают. Что не дают - сперва отбираю, потом ем
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-11 6:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 6:22 [Comm] squid redirector wrap Maxim.Savrilov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git