Monitor Specific New Files and Execute the File - Python for Integrated Circuits - - An Online Book - |
||||||||
Python for Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix | ||||||||
================================================================================= ============================================ Monitor a specific new files and execute the file, and then re-start the monitoring program itself to continue its monitoring by standby: code: ============================ Monitor a specific new files and execute the file, and then re-start the monitoring program itself to continue its monitoring by standby (note: this program only has one line difference from the one above, but it acts the same way as the one above): code: ============================ Script ranking: Number 1A. Observer runs in the background and pass the value of obtained events to a/another function call. Note this code has two advantages: ============================ Monitor a specific new files and execute the file, and then re-start the monitoring program itself to continue its monitoring by standby (note: this program only has one line difference from the one above, but it acts the same way as the one above): code: ============================================ Monitor specific new files and execute the file: code: ============================================ Monitor specific new files and execute another file: code 1; and Create a .txt file with calling by another file: code 2:
|
||||||||
================================================================================= | ||||||||
|
||||||||