i have a bash script as follows
#!/bin/bash
PROCESS=ps aux | grep [f]fmpeg -c
if [[ $PROCESS -gt 0 ]]
then
echo "process is more then 0"
fi
However, when i do run a check, even when the results found are more then 0, my if statement should be true but it is not be kicked off. I am not sure what is wrong with the comparison.