|
Hits: 29
Perl storable module to persist data to disk
 0.0
Came across the following challenge this week, how do I easily persist data between two independent UNIX sessions.
Usually I’d store data in a db or maybe ldap, but I only want to keep maybe a days worth and on multiple servers. In this article, I show two scripts - one which writes using the Perl Storage module and the other that reads.
Each call to write, adds to a data file. Which is then extracted from by the read script.
I include possible uses, for example recording restarts of a given service. In this instance I did n't want services restarting multiple times, where manual recovery of data would be needed.
Also generating multiple alerts and notifications, but again looking to throttle them to a given number of iterations over 24 hours.
Platform(s): Linux, FreeBSD, Sun Solaris
Date: Jun, 05 2006
Author: Marcus, http://www.techie-blogs.com/wordpress/?p=59
License
| License Type: Freeware |
| |
price: Free |
| License Type: Freeware |
| |
price: Free |
| License Type: Freeware |
| |
price: Free |
Ratings
Number of Ratings: 100 Votes
| 5 |
|
| 30% |
| 4 |
| 70%
|
| 3 |
| 0%
|
| 2 |
| 0%
|
| 1 |
| 0%
|
|
|
Others Scripts
PHP/Tips and Tutorials/Database-Related
PHP/Scripts and Programs/Image Handling/Image Creation
Software/Graphic Apps/Viewers
PHP/Scripts and Programs/Text Processing
Software/Graphic Apps/Graphics/Other
Java/Tips and Tutorials/Security
Software/Graphic Apps/Graphics/Other
JavaScript/Tips and Tutorials/DHTML
Software/Graphic Apps/Gallery & Cataloging Tools
CGI and Perl/Scripts and Programs/Password Protection
Software/Graphic Apps/Graphics/Other
PHP/Scripts and Programs/Database Tools
Software/Audio & Video/Audio & Multimedia/Video Tools
JavaScript/Scripts and Programs/Security
Software/Graphic Apps/Other
CGI and Perl/Scripts and Programs/Miscellaneous
Software/Graphic Apps/Graphics & All In One/Other
Remotely Hosted/Miscellaneous
Software/Graphic Apps/Editors
CGI and Perl/Scripts and Programs/Image Manipulation/Utilities
Software/Home & Education/Home & Hobby/Other
Tools and Utilities/Communication Tools
Software/Business/Investment Tools
PHP/Scripts and Programs/Miscellaneous
Software/System Utilities/Utilities/Other
|