Latest version Released: Aug 25, Navigation Project description Release history Download files. Project links Homepage Documentation Repository.
Maintainers newAM. Supported Platforms Linux tested with Ubuntu desktop Documentation Full documentation including examples is available on readthedocs here. Project details Project links Homepage Documentation Repository. Download files Download the file for your platform. Files for monitorcontrol, version 2. Close Hashes for monitorcontrol File type Wheel. Python version py3. Upload date Aug 25, This script contains the class definition for the CHLMonitor class.
The "scan" method is the most important function. The method is responsible for managing the "old" and "new" snapshots taken at successive scans. The method starts by opening a connection with DocMoto. Two loops are involved. The first loops through all the directories listed as being created in the snap shot difference object self. The second handles the presence of any sub folders. The python urllib library provides an ideal function for this in the "quote" method.
The sendFile method starts by copying the file into a buffer, then streams this across to the DocMoto server. The method uses the LwpMotoUtils. If communication is via the standard ports or DocMoto will not accept the file if it already exists. If communication is via ports or then DocMoto will "append" the new file to the existing one by creating a new version. Note that we are sending tag information over using "createPropPatch".
In this case we are completing a value for the "comments" tag. If you want to avoid two versions you can omit the createPropPatch and createVersionControl method calls. The only downside being you cannot set properties such as a comment. Just for completeness the script also has routines to clean up, make notes in log files and move all files uploaded to an archive area. Download the zip file containing the scripts.
Copy the uncompressed folder into your home directory. Create a folder also in your home directory called "test". This will be the folder we are monitoring. Add values for the variables listed at the top of the simpleMonitor. Note: You should generally not use an actual user's name and password.
This is because a user cannot be logged in twice, so if the script logs in whilst the user is connected the user will be logged out. In essence, kqueue is not a very scalable way to monitor a deeply nested directory of files and directories with a large number of files. Vim does not modify files unless directed to do so. It creates backup files and then swaps them in to replace the files you are editing on the disk. This means that if you use Vim to edit your files, the on-modified events for those files will not be triggered by watchdog.
You may need to configure Vim appropriately to disable this feature. When you want to watch changes in CIFS, you need to explicitly tell watchdog to use PollingObserver , that is, instead of letting watchdog decide an appropriate observer like in the example above, do:. Watchdog is licensed under the terms of the Apache License, version 2. Project source code is available at Github. Please report bugs and file enhancement requests at the issue tracker. Oct 1, Aug 23, Aug 19, Jun 26, May 19, May 10, May 4, Apr 22, Feb 22, Feb 17, Feb 11, Dec 18, Dec 10, Jul 5, Nov 21, Jun 25, Feb 8, Jan 31, Jan 26, Aug 28, Oct 29, Jul 28, Jul 2,
0コメント