I'm relatively inexperienced with bash scripting so I'm not sure if this is possible, but basically I'd like to write a bash script that
- runs my program, which periodically prints logs to stdout
- save all of the logs in a file
- stop running the program, and analyse the logs
Is this possible? The program can be run in terminal using ./program -c config_file.txt -v