in reply to Re^2: Can't install Sys::RunAlone
in thread Can't install Sys::RunAlone

Looking at http://cpansearch.perl.org/src/ELIZABETH/Sys-RunAlone-0.12/t/RunAlone.t its written in non-portable manner (like a shell script)

Looking at http://cpansearch.perl.org/src/ELIZABETH/Sys-RunAlone-0.12/lib/Sys/RunAlone.pm its a very simple module based around flocking the DATA filehandle -- it will work on windows even if the test suite is broken (should have used Proc::Background or IPC::System::Simple )

However I would not use it because the test suite is still broken and the author knows how to code for portability

I would use File::HomeDir with File::Lockfile ( lock $my_data/appname/.lockfile )

See also only allow single instance of program running, Ensuring only one copy of a perl script is running at a time, Wx::SingleInstanceChecker

Replies are listed 'Best First'.
Re^4: Can't install Sys::RunAlone
by Anonymous Monk on Apr 12, 2012 at 00:16 UTC