46 printf(
"Usage: %s [options] [id [id ...]]\n",Name);
47 printf(
" -i :: initialize the database, then exit.\n");
48 printf(
" -c SYSCONFDIR :: FOSSology configuration directory.\n");
49 printf(
" -h :: show available command line options.\n");
50 printf(
" -v :: increase agent logging verbosity.\n");
54 int main (
int argc,
char *argv[])
60 char agent_rev[myBUFSIZ];
70 sprintf(agent_rev,
"%s.%s", VERSION, COMMIT_HASH);
72 fprintf(stdout,
"regexscan reports version info as '%s.%s'.\n", VERSION, COMMIT_HASH);
75 while((c = getopt(argc,argv,
"civ")) != -1)
The main FOSSology C library.
void fo_scheduler_disconnect(int retcode)
Disconnect the scheduler connection.
char * fo_sysconfig(const char *sectionname, const char *variablename)
gets a system configuration variable from the configuration data.
int agent_verbose
Common verbose flags for the agents, this is used so that the scheduler can change the verbose level ...
void fo_scheduler_connect(int *argc, char **argv, PGconn **db_conn)
Establish a connection between an agent and the scheduler.
void Usage(char *Name)
Say how to run this program.
PGconn * pgConn
Database connection.