MMM::Utils - MMM::Utils documentation


mmm documentation  | view source Contained in the mmm distribution.

Index


NAME

Top

MMM::Utils

METHODS

Top

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

Top

Olivier Thauvin <nanardon@nanardon.zarb.org>


mmm documentation  | view source Contained in the mmm distribution.