[Solved] How can I write a number into a executable from a script [closed]


I think you are asking to have the script feed a specific number to the executable’s standard input. This is done as follows:

echo $number | ./exec

1

solved How can I write a number into a executable from a script [closed]