Skip to main content
Solved

Box Sync running script


Forum|alt.badge.img+3

I need a script to check that Box Sync is running in the background. I have tried adding a few as extension attributes but they don't seem to work. I just need a report to see if the process is actually running or not.

Any ideas?

Best answer by chriscollins

@Brianmarum

As a start, this works fine as an extension attribute:

#!/bin/bash

box_status=$(ps aux | grep "Box Sync Monitor" | grep -v "grep")

if [ ! -z "$box_status" ]; then
    echo "<result>Running</result>"
else
    echo "<result>Not Running</result>"
fi
View original
Did this topic help you find an answer to your question?

3 replies

mark_mahabir
Forum|alt.badge.img+15
  • Jamf Heroes
  • 331 replies
  • October 26, 2016

Forum|alt.badge.img+16
  • Honored Contributor
  • 403 replies
  • Answer
  • October 26, 2016

@Brianmarum

As a start, this works fine as an extension attribute:

#!/bin/bash

box_status=$(ps aux | grep "Box Sync Monitor" | grep -v "grep")

if [ ! -z "$box_status" ]; then
    echo "<result>Running</result>"
else
    echo "<result>Not Running</result>"
fi

Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 3 replies
  • October 27, 2016

This worked perfectly. Thanks a million!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings