Hello,
thank you for the inspiration.
I wrote 2 scripts, one StartAvast.sh starts the daemon , waits and then hides the windows with osascript-command (Applescript).
The second one makes the Update of /Users/Shared/400.vps. And then kills the Daemon so that the GUI will restart it. I made it with kill because I could not get the following to run.
you can make links to "central" 400.vps from the directories of each user. But, then, it would be good to run the daemon with -a switch, when the daemon automatically watches the relevant 400.vps file, and reloads the definitions when the file changes.
GUI will attach to any running daemon, what it needs is the response from the socket (sockets responds with initial message -> use it and don't start own daemon instance). thus, running daemon or more daemons in advance with "-a" and updating the central 400.VIP only is possible.
The Damon is started with another Tempfolder (uncommented part in StartAvast.sh) When the Update is done, the GUI shows the old Date of the Virusdefinition even after Apple+Q and restart. When I quit with daemon (Alt+Apple+Q) and then restart it, the new date is shown in the GUI. Does anybody has a idea
The call of the Updatescript is made with cron. The first call in the Startscript is uncommented because when the call is made by a Automatoraction, the curl-call is suspended after downloading 400k of the vps.