Book Reviews   Digital Libraries   Astronomy Log   Software   About  
The main stuff

Cool perl modules in the Sys:: tree
23 September 2005 11:40

Went digging through Sys:: modules on CPAN today and found some gems:

Sys::RunAlone - Ever written a script that you needed to ensure there was only ever one copy of it running?

    use Sys::RunAlone;
    ...
    __END__
and you're done. The module uses the DATA handle in the script as a semaphore. Nice. Fits nicely with the ideals espoused in Damian Conway's sufficiently advanced technology talk.

Sys::RunAlone CPAN page.

Sys::RunUntil - Ever written a script that you only want to run for a specified amount of time, regardless of what it happens to be doing? Forget about forking and calling alarm(), etc. Just:

    use Sys::RunUntil '30mW';
to let it run for only 30 minutes (wallclock time). Interested only in CPU time? Then
    use Sys::RunUntil '30sC';
and you're good. Nice.

Sys::RunUntil CPAN page

Enjoy!


Comments
Add a comment
Your name: (Required)


Your email: (Optional, not displayed)


URL: (Optional, the address of your web site or blog)


Your comments: (Required)

Please enter the text you see in the image
The CAPTCHA image


Thank you!
Please donate
liftingupserenity.com

Some dude

Daniel Hanks

I'm a database/systems administrator working for a large web hosting company in Utah.

Interested in

perl
books
databases
genealogy
astronomy
digital archival
digital libraries
web applications
web infrastructure
distributed storage

among other things . . .

Storyteller


Pamela Hanks

is an excellent storyteller.

(She also happens to be my wife :-)

A storyteller makes a wonderful and unique addition to family, school, church or other group events. Schedule her for your next gathering.


Kiva.org

Recent Entries

Subscribe with Bloglines
- Harnessing human computational power from computer games
- I love a good roadtrip
- FamilySearch Developers Conference 2008 presentations now available online
- FHT follow up: an idea for a mobile genealogical application
- Family history and technology: it's only getting better
- President Hinckley passes away
- December is NaBoMoReMo - National Book of Mormon Reading Month
- Family History, Photos, Blogs, and Books
- The Compact Oxford English Dictionary
- 1830s English and the Book of Mormon
- Google adds My Library feature to Book Search
- Utah Open Source Conference
- Wiki diagrammer (Steal this idea!)
- Microloans at Internet-scale
- Podcasting content created by someone else
- Silver Lining thought: Parking at work
- Emerging technologies for system administrators
- Amazon S3 storage engine for MySQL, part II
- Total lunar eclipse on Sat, Mar 3, 2007
- Are you ready for the 2007 Daylight Savings time changes?

All Entries . . .

LDSOSS
LDS Open Source Software
A website discussing the use of Open-source software for applications useful to those sharing values of the Latter-day Saint (Mormon) faith.

Cool Perl Modules

My del.icio.us
Recent bookmarks

Spread the Word
Get Firefox!

--> © 2004, Daniel C. Hanks