Electron microscopy
 
watchdog with Conditioning Break
- 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

=================================================================================

============================================

Program ranking: 1AAA. Duplicate the file when a specific file is moved to the folder, and then the file duplicating process stops when the file number in the folder is 5. When the file is moved out and moved back in when the file number is less than 5 again, then the duplicating process will start automatically again.
     Monitoring script: code:
          sys.argv         
     Script for duplicating a file: code:
          sys.argv
     input (the file for tracing is not in the folder):
         sys.argv
     The file is moved into the folder:
         sys.argv
     The duplicating process halts when the number limit of files, 5 here, in the folder is reached:
         sys.argv
         sys.argv
     The file duplicating process does not restart after the file number in the folder is reduced:
         sys.argv
     The tracing file is moved out from the folder:
         sys.argv
    The duplicating process has restarted automatically and halts again when the number limit of files, 5 here, in the folder is reached:
         sys.argv
    After the program has been restarted manually, then:
         sys.argv
    Nice job, this is what you want ideally!

============================================

Duplicate the file forever when a specific file is moved to the folder. Plus, the duplication process still continue, once the execution starts, even if the file has been removed from the folder, meaning the duplication process will never stop:
     Monitoring script: code:
          sys.argv         
     Script for duplicating a file:code:
          sys.argv
     Output (images are being duplicated englessly):
         sys.argv

============================================

Duplicate the file forever:
     Monitoring script: code:
          sys.argv         
     Script for duplicating a file:code:
          sys.argv
     Output (images are being duplicated englessly):
         sys.argv
     

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 

 

 

 

 

 

=================================================================================