Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Script to turn On-Access scanning off/on

Hi folks

Can anyone help me with a script to stop or start the InterCheck process on a Mac?

In short, I'm wanting to script On-Access Scanning to be off at the start of a backup (to improve performance) and restar when the backup finishes.

Thanks in advance

Georgia

:1002115


This thread was automatically locked due to age.
Parents
  • Hi,

    Also "Use At Your Own Risk!"

    An administrator's password can be used in a shell script .  So in your example:

    do shell script  "echo <password> | sudo -S launchctl unload -w /Library/LaunchDaemons/com.sophos.intercheck.plist"

    Hope that's useful.

    :1014149
Reply
  • Hi,

    Also "Use At Your Own Risk!"

    An administrator's password can be used in a shell script .  So in your example:

    do shell script  "echo <password> | sudo -S launchctl unload -w /Library/LaunchDaemons/com.sophos.intercheck.plist"

    Hope that's useful.

    :1014149
Children
No Data