Knowledge Base / Appnel Solutions 

Last Modified
19 November 2007 @ 4pm

mt-closure Manual

NAME

mt-closure - A command-line script for closing comments and pings open for a specified period of time.

VERSION

0.11

SYNOPSIS

 ./mt-closure.pl OPTIONS... [BLOG_IDS...]

 Examples:
 ./mt-closure.pl -c --hours=36 2 3 6   
    # closes comments open for 36+ hours in weblogs 2, 3 and 6.
    
 ./mt-closure.pl -cp --days=1 --all 
    # closes comments/pings open for one day+ in all weblogs.
 
 Target:
 -c, --comments      Enable comment closing.
 -p, --pings         Enable ping closing.
 
 At least one target option must be specified.
 
 Selection:
     --all           Will check every weblog in the system.
     --evaluate_on=  Specifies the type of evaluation scheme. Value
              SCHEME must be 'created_on' or 'modified_on'. 
                     'created_on' is the default.
 
 Timing:
 -h, --hours=INT     Close comments/pings that are older then X hours.
 -d, --days=INT      Close comments/pings that are older then X days. 
 
 At least one time options must be specified.
 
 
 The software is released under the Artistic License. The terms of the 
 Artistic License are described at 
 http://www.perl.com/language/misc/Artistic.html.

 Except where otherwise noted, mt-closure is copyright 2004,
 Appnel Internet Solutions Timothy Appnel, tim@appnel.com.
 All rights reserved.

INSTALLATION

To install mt-closure, place the script on in the main directory where MovableType has been installed. Read, Write and Execute permissions should only be assigned to the owner (you) with chmod mt-closure.pl 700.

PREREQUISITES

Getopt::Long 2.33+

BUGS

No bugs are known, however this script was not rigorously tested and should be treated as a beta release. Please contact the author with any bugs.

TO DO

  • Implement last(_comment|_ping) schemes to evalute on.
  • Better/more status messages --quiet and --verbose modes.

LICENSE

The software is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.

AUTHOR & COPYRIGHT

Except where otherwise noted, mt-closure is copyright 2004, Appnel Internet Solutions Timothy Appnel, tim@appnel.com. All rights reserved.


 

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated. Please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form.

Back to Home