Closed ElTacitos closed 1 year ago
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 -S option ?
-S
Hey,
I am trying to run a commands which needs to run as sudo in order to work (pmset).
When I run this script I get the following error:
Where am I supposed to put the
-S
option ?