Command-line interface

The command-line is the Linux default user interface. It is used to maintain the operating system. Therefore also cherryEPG is using this way of performing jobs.

Login as cherryepg user before running any cherryEPG related maintenance tasks!

The command-line tool for maintenance is cherryTool. By various parameters and switches you can define the behavior of the tool. You can always run cherryTool -hto get a short command-line switch overview.

cherryTool [options] -[gdiprwx zero or multiple channel_id]

-v         use verbose output mode

-h         show this help
-V         show version and configuration info
-R         systemcheck and report
-N         systemcheck and notify to log
-S         show detailed database statistics
-I chunk   inspect chunk and generate mosaic.png
-Z msg     send ERROR record to log for testing

-L scheme  initialize fresh EPG database from scheme file
-l scheme  load scheme file into existing database (do not remove existing services and events)
          every imported scheme file is copied to scheme store
-f         show last(newest) scheme from scheme store directory
-F         list files in scheme store directory

-j scheme  show scheme statistics
-e file    export scheme to file

-G target  grab&ingest by target: all, daily, hourly, weekly
-M         make all output EIT chunks
-B         build all output EIT chunks (forced make)
-g id      grab service schedule data
-d id      delete all files for service (not directory itself)
-i id      ingest (parse) files for channels from ingest directory
-a id      parse files for channels from ingest directory and just return result DON'T INGEST
-r id      reset by deleting *.md5.parsed files
-w id      wipe/remove service definition and data
-x id      export all events for service in XMLTV format to file {channel-id.xml}

-T         reset all tables in database to empty state (drop+init)
-t         delete section and version table (force at next build)
-D         delete ingest
-P         delete all output rules
-y         delete EIT files in carousel {eit_???.cts}
-Y         delete ALL dynamic files in carousel

-O         cleanup database (events, logs)

-H host    set host as target when converting xls to scheme (used to select sheet)
-c xls     convert xls scheme file to yaml