Thread: EAB File Server
View Single Post
Old 01 November 2017, 10:08   #1608
modrobert
old bearded fool

modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 52
Posts: 520
I have updated the previous release post with eab_post_count.py v1.12.

Code:
eab_post_count.py v1.12 by modrobert in 2017
Function: Returns the number of posts for a given EAB forum user.
Syntax  : eab_post_count.py -u <username> [-i] [-l YYYY-MM-DD]
Options : -h this help text.
        : -i ignore case sensivity in user name.
          -l last post after YYYY-MM-DD required.
          -u followed by user name.
Result  : 0 = user found, 1 = user not found, 2 = EAB down, 3 = other fail.
After briefly being unable to access the EAB forum it occurred to me something was missing.

Changelog v1.12:
* Added exit/result code 2 when the EAB website is down by properly dealing with the exception.
* Added result code 3 for other fail like bad arguments etc.
modrobert is offline  
 
Page generated in 0.04332 seconds with 11 queries