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.
Go to Solution.
As a start, this works fine as an extension attribute:
box_status=$(ps aux | grep "Box Sync Monitor" | grep -v "grep")
if [ ! -z "$box_status" ]; then
echo "<result>Not Running</result>"
View solution in original post
How about something based on:
This worked perfectly. Thanks a million!