This post is about some automation tasks, and also to satisfy my curiosity.
Is this scenario possible, can anyone offer any practical pointers?
Run a shell script
shell_exec(bash script);
Bash script like:
- Run a shell;
- read file for input;
- pass input to shell;
- fetch result from shell;
- write to another file for output.
- Keep in infinite loop.
Write input commands to file for example:
- wait few seconds
- read output file for result
- depending on output, write new input commands to file
- the loop continues.