Posted on 10-26-2016 01:50 AM
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?
Solved! Go to Solution.
Posted on 10-26-2016 03:37 PM
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
Posted on 10-26-2016 08:38 AM
How about something based on:
Posted on 10-26-2016 03:37 PM
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
Posted on 10-26-2016 11:53 PM
This worked perfectly. Thanks a million!