for example, there is a C program test.c:
#include<stdio.h>
int main(){
int aa;
scanf("%d",&aa);
return 0;
}
I want to write a bash script that can automatically execute this program. And what's more, if the input in the C program (aa) needs to be delayed for a few seconds after the program is called, how should the script be written?
The problem is that I don't know how to set the delay.
./test<<EOF
8
<<EOF