NAME

MMM::Utils

METHODS

yes_no($val)

Parse $val to return true or false

fmt_duration($second)

Transform a duration in second to a string in form of day/hours/minutes/seconds.

duration2m($duration)

Return in minutes a human readable value like 2d or 3h

setid($user, $group)

Change effective user and group to $user and optionnal $group.

Return arrayref containning old uid and gid on success. Return undef and error message on failure.

AUTHOR

Olivier Thauvin <nanardon@nanardon.zarb.org>