redirect C output to shell (bash) input
Ive been up and down google all yesterday, and found this forum, and looked through here all morning and cant find a simple answer to this:
I want to redirect the output of some C code into a bash shell.
Basically I want to use C to open mpg321 and then process the keypresses to control the program.
I read that it was done by something like redirecting the output to "/dev/tty" but I havent figured out if thats even close.
If you have a short answer it would be greatly appriciated, or if you have a link where I can read up on it Id like that too.
Thanks!