I need assistance with my python script.

Job ID: 31815146

Budget: $30 – $250 USD

I have a script that is meant to replace certain values in certain files when a certain text is seen in a file that is actively tailed.

I have folder "tracking" with files "tracking.log, tracking.log1.gz, tracking.log2.gz". tracking.log file is being followed using a subprocess, when a certain string "stringxx" is found in the file, it is meant to

1. Perform certain actions in the other files "tracking.log1.gz, tracking.log2.gz""
2. Wait for the current "tracking.log" to be gzipped by the system, perform the same action done in step 1
3. Keep listening for new entries of "stringxx" and start from step one again.
Related categories: Python Linux Scripting Bash Scripting