For various unfortunate reasons, part of my build requires root privileges. I'm trying to use sudo
for this:
cmd_ "sudo other_script.sh" [input] [output]
However, presumably because of how Shake handles console input/output, I cannot actually enter my password when sudo
runs. I have tried passing WithStderr False
to cmd_
, as well as setting shakeLineBuffering=False
, to no avail.
What is the correct way to allow a command to prompt for user input? If such a thing does not exist, is there another good way to do something similar?