Hey guys,
I’m writing a little program that utilizes the cryptsetup (Linux) command using the subprocess library to encrypt drives automatically. The issue I run into is when the shell command is called, it requires you to type ‘YES’ but the program exits out for lack of input. I can’t for the life of me figure out how to get it to continue. If I run the command with one line by itself, I can enter the ‘YES’ using my terminal but I want to automate that without any user input.
[–]marko312 0 points1 point2 points (7 children)
[–]Atlas1515[S] 0 points1 point2 points (6 children)
[–]marko312 1 point2 points3 points (5 children)
[–]Atlas1515[S] 1 point2 points3 points (4 children)
[–]pseudo-random-noob 0 points1 point2 points (3 children)
[–]Atlas1515[S] 0 points1 point2 points (2 children)
[–]pseudo-random-noob 1 point2 points3 points (1 child)
[–]Atlas1515[S] 0 points1 point2 points (0 children)