You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just came across this library, it looks like it does exactly what I need. Is there a way to call this to elevate a specific command? I don't need my entire script to run as root, just one command (to call a shell script on an OS X system). Thank you!
The text was updated successfully, but these errors were encountered:
if stdin is still connected to a tty, then putting sudo in front of the command that needs to be elevated should work, and you will be prompted for a password
Thank you for the tip and your reply. For this particular use case I'm pretty sure I'll need to get the standard GUI prompt which is why I was excited to use this library for it.
Just came across this library, it looks like it does exactly what I need. Is there a way to call this to elevate a specific command? I don't need my entire script to run as root, just one command (to call a shell script on an OS X system). Thank you!
The text was updated successfully, but these errors were encountered: