Hello-
I am trying to automate a call to su. Unfortunately, su requires input from a terminal. I have seen examples of how to create a pseudo terminal and I understand that su will accept input...
Type: Posts; User: oncemyway
Hello-
I am trying to automate a call to su. Unfortunately, su requires input from a terminal. I have seen examples of how to create a pseudo terminal and I understand that su will accept input...
hello-
i am calling getchar, and i know usually that you have to hit enter to flush the buffer and read the data with getchar. however, i see that if i input 2k characters interactively, getchar...
thanks for the help guys, i got it to work with pipes.
it worked for me to do write-only and read the output on the screen.
just a quick question, if pipes are one-way, can you set up two pipes...
hello-
i have program that accepts input via getchar() and performs a task after receiving that input. i know i can redirect stdin like so: a.out < inputfile to give input, but i am looking for a...