Skip to main content
Solved

Sophos Updates

  • February 24, 2017
  • 2 replies
  • 35 views

Forum|alt.badge.img+8

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

Best answer by AVmcclint

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

2 replies

AVmcclint
Forum|alt.badge.img+21
  • Esteemed Contributor
  • Answer
  • February 24, 2017

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


Forum|alt.badge.img+8
  • Author
  • Contributor
  • February 24, 2017

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

Thank you!