If you just need to restart the computer, add your account to /etc/sudoers
with NOPASSWD
keyword and
system("sudo reboot");
should do the job. I don't know what feature you are talking about ofxWatchdog, though.
If you just need to restart the computer, add your account to /etc/sudoers
with NOPASSWD
keyword and
system("sudo reboot");
should do the job. I don't know what feature you are talking about ofxWatchdog, though.