CTK::FilePid - File::Pid patched interface
Version 1.01
$Revision: 69 $
use CTK::FilePid; my $pidfile = new CTK::FilePid ({ file => '/some/file.pid', }); if ( my $num = $pidfile->running ) { die "Already running: $num\n"; } else { $pidfile->write; # ... # blah-blah-blah # ... $pidfile->remove; }
This software manages a pid file for you. It will create a pid file, query the process within to discover if it's still running, and remove the pid file.
See File::Pid for details
Serz Minus (Lepenkov Sergey) http://serzik.ru <minus@mail333.com>
Copyright (C) 1998-2012 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms and conditions as Perl itself.
This program is distributed under the GNU LGPL v3 (GNU Lesser General Public License version 3).
See LICENSE file
LICENSE
To install CTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CTK
CPAN shell
perl -MCPAN -e shell install CTK
For more information on module installation, please visit the detailed CPAN module installation guide.