FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
fossjobs list fossology agents that are configured in the ui or run the default configured in the ui. More...
Go to the source code of this file.
Functions | |
list_agents () | |
list agents More... | |
Variables | |
global | $Plugins |
global | $PERM_NAMES |
global | $SysConf |
global | $PG_CONN |
$usage | |
$longopts = array("username:", "password:", "groupname:") | |
$options = getopt("c:haA:P:uU:D:v", $longopts) | |
if(empty($options)) if(array_key_exists("h", $options)) | $user = "" |
$passwd = "" | |
$group = "" | |
$groupId = Auth::getGroupId() | |
$Verbose = 0 | |
if(array_key_exists("v", $options)) | $agent_list = list_agents() |
if(empty($agent_list)) if(array_key_exists("a", $options)) | $Skip = array("agent_unpack", "agent_adj2nest", "wget_agent") |
if(array_key_exists("A", $options)) if(array_key_exists("u", $options)) | $uploadDao = $GLOBALS['container']->get('dao.upload') |
fossjobs list fossology agents that are configured in the ui or run the default configured in the ui.
(optional) | string -h standard help switch |
(optional) | string -v verbose debugging |
(optional) | string -a lists agents |
(optional) | string -A specify agents |
(optional) | string -u list available uploads |
(optional) | string –username specify user name |
(optional) | string –groupname specify group name |
(optional) | string –password specify password |
(optional) | string -c Specify the directory for the system configuration |
(optional) | string -D Delete upload |
int | -U $upload_pk upload primary key to run agents on.... |
@exit 0 for success, others for failure....
Definition in file fossjobs.php.
list_agents | ( | ) |
list agents
lists the agents that are registered with the system. Assumes that the agent plugins have been configured.
scheduling agent tasks on upload ids
scheduling delagent tasks on upload ids
Definition at line 48 of file fossjobs.php.
global $Plugins |
include common-cli.php directly, common.php can not include common-cli.php becuase common.php is included before UI_CLI is set
Definition at line 60 of file fossjobs.php.
Definition at line 70 of file fossjobs.php.