NAME
System::Timeout - Extend <system()> to Allow Timeout after specified seconds
SYNOPSIS
use System::Timeout qw(system system_ex);
system("3", "sleep 9");
system_ex("3", "sleep 9");
% timeout --timeout=3 "sleep 9" #Run command "Sleep 9" and timeout after 3 seconds
DESCRIPTION
This module extends <system()> to allow timeout after the specified seconds and log the command in file. This can be useful when invoking <system()> in daemon. This also include a cli tool "timeout" which can be easily used to force command exit after specified seconds. This module is based on core function <fork()> and <exec()>.
AUTHOR
Written by Chen Gang, yikuyiku.com@gmail.com
COPYRIGHT
Copyright (c) 2011 Chen Gang.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.