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 different way.

is there a way i can write a separate program to provide input for the first program? i know how to execute the first program, just not give it input, it doesn't take command line args.

thanks for any help.