Skip to main content

Hi,



I'm trying to run a policy with a script to run the sophosupdate command written from info here https://community.sophos.com/kb/pl-pl/15895



The script is



#!/bin/sh

rm -f /Library/Caches/com.sophos.sau/CID/cidsync.upd

sophosupdate


I get no errors if i sent this via Remote but the output on a policy is



Executing Policy Sophos Update
Running script Update Sophos...
Script exit code: 127
Script result: /Library/Application Support/JAMF/tmp/Update Sophos: line 5: sophosupdate: command not found
Error running script: return code was 127.



Looks like it doesn't know where to run the command sophosupdate from..



I've had a poke around but can't seem to find an answer. Anyone else tried this or know the path to where the command runs from?



Thanks



Al

try running which sophosupdate and that should tell you where it is.


Ah, never knew which.. Awesome, seems to have done the trick.



Thank you!