Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step-by-step guide

  1. Download the script.

    code

    Shell
    wget -O time_interval.pl https://raw.githubusercontent.com/4psa/voipnowtoolbox/master/time_interval.pl

  2. Install the needed Perl libraries.

    code

    Shell
    yum install perl-DBD-mysql perl-JSON

  3. Run the script. 

    code

    Shell
    perl time_interval.pl
    The available options will be displayed:

    Code Block
    Usage:
    Available options:
             Share a time interval with a different account
                    perl time_interval.pl share <time_interval_id> <client_id>
                    E.G.: perl time_interval.pl share 2 4
    
             Dump a time interval to a file
                    perl time_interval.pl dump <time_interval_id> <file_name or empty>
                    E.G.: perl time_interval.pl dump 2 afterhours
    
             Restore a time interval from a file
                    perl time_interval.pl restore <client_id> <file_name or empty>
                    E.G.: perl time_interval.pl restore 2 afterhours.json
    
    

...

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.