clamd говорит, что сокет, используемый другим процессом, но я не могу найти тот

Нет, это не возможно с аппаратными средствами Apple и MacOS.

Самый легкий способ сделать что-то как этот было бы "Мультиместом" система Linux. X11 может обработать эту ситуацию более или менее легко, и существуют многие люди, у которых есть это выполнение успешно (как пример, см. эту статью).

Конечно, это не предлагает MacOS как операционную систему.

2
задан 24 October 2012 в 18:01
1 ответ

It seems that you misunderstood the documentation. After clamd is started it accepts commands on the socket that it opens. What clamd PING does is try to start another instance of clamd, which did not work because there is one instance running already.

If you want to send commands to the clamd process, you should connect to the socket and send your commands. Like this:

$ echo PING | nc -U /var/run/clamav/clamd.sock
PONG

According to the documentation, you can also prefix the commands with "n" if you are writing them in your terminal, so clamd knows for sure that the end of the line is the end of the command.

$ echo nPING | nc -U /var/run/clamav/clamd.sock
PONG
2
ответ дан 3 December 2019 в 11:51

Теги

Похожие вопросы