Running sudo app
#1200
-
Hey, I am trying to run a commands which needs to run as sudo in order to work (pmset). await $`sudo pmset -a displaysleep 3` When I run this script I get the following error: [warn] Error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper Where am I supposed to put the |
Beta Was this translation helpful? Give feedback.
Answered by
ElTacitos
Apr 24, 2023
Replies: 1 comment
-
Thanks to @johnlindquist for the answer:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ElTacitos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to @johnlindquist for the answer: