Нет, это не возможно с аппаратными средствами Apple и MacOS.
Самый легкий способ сделать что-то как этот было бы "Мультиместом" система Linux. X11 может обработать эту ситуацию более или менее легко, и существуют многие люди, у которых есть это выполнение успешно (как пример, см. эту статью).
Конечно, это не предлагает MacOS как операционную систему.
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