I have a console program which uses standard input and output.For example I call : ./program_name and after that I enter inputI need to make this two actions in one command like: ./program_name 'my input string' (this command returns Abort trap: 6).How to do that?I haven't source code for the program.
How to start script and put standard input in one command?
shell;input
Use a here string./program_name <<< 'my input string'or a here document (longer, but standard):./program_name <<EOFmy input stringEOF