-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
think about remote shutdown #146
Comments
Is it actually desirable to shutdown a PC via API calls? You can easily craft a shell command for that matter (via remote SSH commands), but why would you like to do that from C++ code? |
|
Yes, I agree, I'm not saying the user should not be able to do that.
The C way of doing this according to the link you posted earlier also requires permissions. I don't think that exposing a system call (either explicitly via |
I agree. IRobotManager was originally intended to be catch-all and ambitious. In practice, devices have implemented the movement oriented methods. It now seems like the naming should have been the opposite: in the current state, the base class is catch-all, and the implementations are limited; we could rename the base class to something movement specific (and in the future rename the implementations if they ever become more broad). In any case:
|
Agreed. SSH-ing here doesn't necessarily mean to log-in and start a remote shell session, though. SSH calls aside, one could use yarprun for such remote commands. |
think about shutdown
...but also about privileges: http://how-to.wikia.com/wiki/How_to_allow_non-super_users_to_shutdown_computer_in_Linux
...and avoiding system calls: https://stackoverflow.com/questions/28812514/how-to-shutdown-linux-using-c-or-qt-without-call-to-system
The text was updated successfully, but these errors were encountered: