Have a question about linux bash. I want to start a program and then send input to it.
Normally in de terminal I do just, ./chat and then type something.
I dont know how it should be in bash, i tried this:
./chat
hi
Really dont how to. Hope someone will have the solution.
/chatand then typing your input should work just fine. If it is expecting arguments, then you'll feed it arguments as SpyrosP suggests. If it is expecting a file, then you'll have to give it a file.echo something | ./chatperhaps?cat textfile) and pipe it to your program with| ./chat