set hid to get the shell script to work from c, code also need to execute the c code with sudo