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?
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
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.