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

[ad_1]

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

[ad_2]

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