ONO::Cron::CronSync::ToolBox

ONO's CronSync ToolBox.

Functions

connect();

Connect to the default ONO database.

ONO::Cron::CronSync::ToolBox->connect( );
returns: $db

dir();

Default cronsync directory, or custom directory?

Switches:

-c cronsync run mode, requires $script_path
-i also return info

ONO::Cron::CronSync::ToolBox->dir( $switches, $script_path );

get_site();

Get site information.

ONO::Cron::CronSync::ToolBox->get_site( );

print();

Print log message.

ONO::Cron::CronSync::ToolBox->print( $msg,$switches );
returns: "$msg\n"

timestamp();

Get a human readable timestamp.

ONO::Cron::CronSync::ToolBox->timestamp( );
returns: "$hour:$min:$sec $mday.$mon.$year"

types();

Array of available CronSync jobs.

ONO::Cron::CronSync::ToolBox->types( $website,$users,$database,$backup,$fileserver );

Sub-Modules

none

Dependencies

Code