Flint provides out-of-the-box or ready to use workflows for Local-command connector Operations. Here are the details of workflows/Flintbits for Local-Command connector operations-

flint-utilhttps://github.com/getflint/flint-util.gitflint-util > localcommand > operation

Available Flintbits

Perform all standard application operations available through the Local-Command connector, some are listed below:

Local-Command connector available Flintbits

  • localcommand.rb

LocalCommand

To execute command on local machine..

Input and output JSON for the Local-Command connector operation

This section illustrates the Flintbit Input and output for local-command operations.

Sample Input JSON for the Local-Command operation
{
 "connector_name" : " local-command-connector",
 "command" : "ls -l -a"                                  
}
Flintbit input elements for the Local-Command operation
connector_nameName of the Local-command Connector to be configured.true
commandCommand to be execute on local machinetrue
Sample JSON output for the Local-Command operations
{
  "meta": {
    "job-id": "job-470aa8ad-ab5f-4240-b589-d5528d45b9af",
    "exit-code": 0,
    "context": "flint-util:localcommand:operation:localcommand.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469605295222,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "result": "total 2216\ndrwxrwxrwx 14 anurag anurag    4096 Jul 11 13:45 .\ndrwxr-xr-x 42 anurag anurag    4096 Jul 27 10:28 ..\n-rw-rw-r--  1 anurag anurag       5 Jul 11 13:45 Anurag.txt\ndrwxr-xr-x  2 anurag anurag    4096 Jun 29 16:05 base-mods\ndrwxr-xr-x  2 anurag anurag    4096 Jul  7 13:03 config\ndrwxr-xr-x  2 anurag anurag    4096 Jul 22 12:14 connectors\ndrwxr-xr-x  2 anurag anurag    4096 Jul  4 19:22 db\n-rw-rw-r--  1 anurag anurag       5 Jul 11 11:36 fhhhj\n-rw-r--r--  1 anurag anurag    7086 Jun 29 17:32 flint.bat\ndrwxr-xr-x  5 anurag anurag    4096 Jul  7 15:00 flintbox\n-rw-r--r--  1 anurag anurag  614808 Jun 29 17:32 Flint.jar\n-rwxr-xr-x  1 anurag anurag   10774 Jul  4 19:57 flint.sh\n-rwxr-xr-x  1 anurag anurag   10739 Jul  4 19:27 flint.sh~\n-rw-r--r--  1 anurag anurag   59392 Jun 29 17:32 flint-win.exe\n-rw-r--r--  1 anurag anurag     492 Jun 29 17:32 flint-win.xml\ndrwxr-xr-x  2 anurag anurag    4096 Jul  4 19:20 gridconfig\ndrwxr-xr-x  4 anurag anurag    4096 Jun 29 17:31 lib\ndrwxr-xr-x  2 anurag anurag    4096 Jun 29 20:16 listeners\ndrwxr-xr-x  2 anurag anurag    4096 Jul  4 19:20 logs\n-rw-r--r--  1 anurag anurag 1468432 Jun 29 17:32 quasar-core-0.7.4.jar\n-rw-r--r--  1 anurag anurag   16016 Jun 29 17:32 README.txt\ndrwxr-xr-x  2 anurag anurag    4096 Jun 29 16:05 sys-mod\ndrwxrwxr-x  4 anurag anurag    4096 Jul 27 10:35 .vertx\ndrwxr-xr-x  8 anurag anurag    4096 Jun 29 17:04 web-root\n"
  }
}

 

 

 
  • No labels