FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Regex Scanner

About Regex Scanner

A Fossology agent creation "Tutorial" in multiple stages.

This is stage 3 and demonstrates the fundamental agent requirements:

  1. Connect to database
  2. Connect to Scheduler
  3. Process -r as a regex argument
  4. Process filename and report regex scan results from command line
  5. Process upload file collection from upload_pk stdin input
  6. Terminate

Supported actions

Usage: regexscan [options] [id [id ...]]

Command line flag Description
-i Initialize the database, then exit
-c SYSCONFDIR FOSSology configuration directory
-h Show available command line options
-v Increase agent logging verbosity
-r Regex expression to load from command line
filename Filename to process with regex

Agent source