#!/bin/bash
if ! ps aux | grep  "[p]ython /var/www/dmi-tcat/helpers/urlexpand.py"
    then
        timeout 3500 -s SIGKILL python /var/www/dmi-tcat/helpers/urlexpand.py
fi

#!/bin/bash
if ! ps aux | grep  "[p]ython /var/www/dmi-tcat/helpers/urlexpand.py"
    then
        timeout -s SIGKILL 3500 python /var/www/dmi-tcat/helpers/urlexpand.py
fi

Fix order of arguments to timeout
Fix order of arguments to timeout
