{"action":"created","comment":{"url":"https://api.github.com/repos/neos/flow-development-collection/pulls/comments/67494639","id":67494639,"diff_hunk":"@@ -637,6 +637,27 @@ public static function executeCommand($commandIdentifier, array $settings, $outp\n     }\n \n     /**\n+     * Executes the given command as a sub-request to the Flow CLI system without waiting for the output.\n+     * \n+     * Note: As the command execution is done in a separate thread potential exceptions or failures will *not* be reported\n+     *\n+     * @param string $commandIdentifier E.g. typo3.flow:cache:flush\n+     * @param array $settings The TYPO3.Flow settings\n+     * @param array $commandArguments Command arguments\n+     * @return void\n+     * @api\n+     */\n+    public static function executeCommandAsync($commandIdentifier, array $settings, array $commandArguments = array())\n+    {\n+        $command = self::buildSubprocessCommand($commandIdentifier, $settings, $commandArguments);\n+        if (DIRECTORY_SEPARATOR === '/') {\n+            exec($command . ' > /dev/null 2>/dev/null &');\n+        } else {\n+            pclose(popen('START /B CMD /S /C \"' . $command . '\" > NUL 2 > NUL &', 'r'));","path":"TYPO3.Flow/Classes/TYPO3/Flow/Core/Booting/Scripts.php","position":20,"original_position":20,"commit_id":"0128630408b178bdd76cdb11f6caa42ea31122b1","original_commit_id":"e7b8ee4dc05af4db8c03ecc6a524d5c545530a40","user":{"login":"dlubitz","id":13046100,"avatar_url":"https://avatars.githubusercontent.com/u/13046100?v=3","gravatar_id":"","url":"https://api.github.com/users/dlubitz","html_url":"https://github.com/dlubitz","followers_url":"https://api.github.com/users/dlubitz/followers","following_url":"https://api.github.com/users/dlubitz/following{/other_user}","gists_url":"https://api.github.com/users/dlubitz/gists{/gist_id}","starred_url":"https://api.github.com/users/dlubitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlubitz/subscriptions","organizations_url":"https://api.github.com/users/dlubitz/orgs","repos_url":"https://api.github.com/users/dlubitz/repos","events_url":"https://api.github.com/users/dlubitz/events{/privacy}","received_events_url":"https://api.github.com/users/dlubitz/received_events","type":"User","site_admin":false},"body":"I guess there is a space to much, shouldn't it be:\r\n`pclose(popen('START /B CMD /S /C \"' . $command . '\" > NUL 2> NUL &', 'r'));`\r\n\r\nI've tested the command itself (Win 10):\r\n`START /B CMD /S /C \"ping 127.0.0.1 -n 10 > nul & echo %PATH% > test.txt\" > NUL 2> NUL &`\r\nAnd this works.","created_at":"2016-06-17T11:08:22Z","updated_at":"2016-06-17T11:08:22Z","html_url":"https://github.com/neos/flow-development-collection/pull/390#discussion_r67494639","pull_request_url":"https://api.github.com/repos/neos/flow-development-collection/pulls/390","_links":{"self":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/comments/67494639"},"html":{"href":"https://github.com/neos/flow-development-collection/pull/390#discussion_r67494639"},"pull_request":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/390"}}},"pull_request":{"url":"https://api.github.com/repos/neos/flow-development-collection/pulls/390","id":74220852,"html_url":"https://github.com/neos/flow-development-collection/pull/390","diff_url":"https://github.com/neos/flow-development-collection/pull/390.diff","patch_url":"https://github.com/neos/flow-development-collection/pull/390.patch","issue_url":"https://api.github.com/repos/neos/flow-development-collection/issues/390","number":390,"state":"open","locked":false,"title":"FEATURE: Allow asynchronous execution of commands","user":{"login":"bwaidelich","id":307571,"avatar_url":"https://avatars.githubusercontent.com/u/307571?v=3","gravatar_id":"","url":"https://api.github.com/users/bwaidelich","html_url":"https://github.com/bwaidelich","followers_url":"https://api.github.com/users/bwaidelich/followers","following_url":"https://api.github.com/users/bwaidelich/following{/other_user}","gists_url":"https://api.github.com/users/bwaidelich/gists{/gist_id}","starred_url":"https://api.github.com/users/bwaidelich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwaidelich/subscriptions","organizations_url":"https://api.github.com/users/bwaidelich/orgs","repos_url":"https://api.github.com/users/bwaidelich/repos","events_url":"https://api.github.com/users/bwaidelich/events{/privacy}","received_events_url":"https://api.github.com/users/bwaidelich/received_events","type":"User","site_admin":false},"body":"Adds a new convenience method `Scripts::executeCommandAsync()` that can be\r\nused to execute commands without waiting for their result.\r\n\r\nThis is especially useful for time-consuming tasks whose result is not\r\n(instantly) required.\r\n\r\nExample::\r\n\r\n     Scripts::executeCommandAsync('my.package:registration:sendconfirmationmail', $this->flowSettings, ['email' => $emailAddress]);\r\n\r\nFLOW-458 #close","created_at":"2016-06-17T10:26:07Z","updated_at":"2016-06-17T11:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4685c0c9400914b1b436754282836bd0cf4b1c45","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neos/flow-development-collection/pulls/390/commits","review_comments_url":"https://api.github.com/repos/neos/flow-development-collection/pulls/390/comments","review_comment_url":"https://api.github.com/repos/neos/flow-development-collection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neos/flow-development-collection/issues/390/comments","statuses_url":"https://api.github.com/repos/neos/flow-development-collection/statuses/0128630408b178bdd76cdb11f6caa42ea31122b1","head":{"label":"bwaidelich:FLOW-458-async-commands","ref":"FLOW-458-async-commands","sha":"0128630408b178bdd76cdb11f6caa42ea31122b1","user":{"login":"bwaidelich","id":307571,"avatar_url":"https://avatars.githubusercontent.com/u/307571?v=3","gravatar_id":"","url":"https://api.github.com/users/bwaidelich","html_url":"https://github.com/bwaidelich","followers_url":"https://api.github.com/users/bwaidelich/followers","following_url":"https://api.github.com/users/bwaidelich/following{/other_user}","gists_url":"https://api.github.com/users/bwaidelich/gists{/gist_id}","starred_url":"https://api.github.com/users/bwaidelich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwaidelich/subscriptions","organizations_url":"https://api.github.com/users/bwaidelich/orgs","repos_url":"https://api.github.com/users/bwaidelich/repos","events_url":"https://api.github.com/users/bwaidelich/events{/privacy}","received_events_url":"https://api.github.com/users/bwaidelich/received_events","type":"User","site_admin":false},"repo":{"id":41787828,"name":"flow-development-collection","full_name":"bwaidelich/flow-development-collection","owner":{"login":"bwaidelich","id":307571,"avatar_url":"https://avatars.githubusercontent.com/u/307571?v=3","gravatar_id":"","url":"https://api.github.com/users/bwaidelich","html_url":"https://github.com/bwaidelich","followers_url":"https://api.github.com/users/bwaidelich/followers","following_url":"https://api.github.com/users/bwaidelich/following{/other_user}","gists_url":"https://api.github.com/users/bwaidelich/gists{/gist_id}","starred_url":"https://api.github.com/users/bwaidelich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwaidelich/subscriptions","organizations_url":"https://api.github.com/users/bwaidelich/orgs","repos_url":"https://api.github.com/users/bwaidelich/repos","events_url":"https://api.github.com/users/bwaidelich/events{/privacy}","received_events_url":"https://api.github.com/users/bwaidelich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwaidelich/flow-development-collection","description":"The unified repository containing the Flow core packages, used for Flow development.","fork":true,"url":"https://api.github.com/repos/bwaidelich/flow-development-collection","forks_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/forks","keys_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/teams","hooks_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/hooks","issue_events_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/issues/events{/number}","events_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/events","assignees_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/assignees{/user}","branches_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/branches{/branch}","tags_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/tags","blobs_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/statuses/{sha}","languages_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/languages","stargazers_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/stargazers","contributors_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/contributors","subscribers_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/subscribers","subscription_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/subscription","commits_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/contents/{+path}","compare_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/merges","archive_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/downloads","issues_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/issues{/number}","pulls_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/pulls{/number}","milestones_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/milestones{/number}","notifications_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/labels{/name}","releases_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/releases{/id}","deployments_url":"https://api.github.com/repos/bwaidelich/flow-development-collection/deployments","created_at":"2015-09-02T07:54:57Z","updated_at":"2016-01-14T13:07:13Z","pushed_at":"2016-06-17T10:29:06Z","git_url":"git://github.com/bwaidelich/flow-development-collection.git","ssh_url":"git@github.com:bwaidelich/flow-development-collection.git","clone_url":"https://github.com/bwaidelich/flow-development-collection.git","svn_url":"https://github.com/bwaidelich/flow-development-collection","homepage":null,"size":36626,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neos:master","ref":"master","sha":"161258947dc06477198b53a8525f648e81245476","user":{"login":"neos","id":11575267,"avatar_url":"https://avatars.githubusercontent.com/u/11575267?v=3","gravatar_id":"","url":"https://api.github.com/users/neos","html_url":"https://github.com/neos","followers_url":"https://api.github.com/users/neos/followers","following_url":"https://api.github.com/users/neos/following{/other_user}","gists_url":"https://api.github.com/users/neos/gists{/gist_id}","starred_url":"https://api.github.com/users/neos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neos/subscriptions","organizations_url":"https://api.github.com/users/neos/orgs","repos_url":"https://api.github.com/users/neos/repos","events_url":"https://api.github.com/users/neos/events{/privacy}","received_events_url":"https://api.github.com/users/neos/received_events","type":"Organization","site_admin":false},"repo":{"id":40963991,"name":"flow-development-collection","full_name":"neos/flow-development-collection","owner":{"login":"neos","id":11575267,"avatar_url":"https://avatars.githubusercontent.com/u/11575267?v=3","gravatar_id":"","url":"https://api.github.com/users/neos","html_url":"https://github.com/neos","followers_url":"https://api.github.com/users/neos/followers","following_url":"https://api.github.com/users/neos/following{/other_user}","gists_url":"https://api.github.com/users/neos/gists{/gist_id}","starred_url":"https://api.github.com/users/neos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neos/subscriptions","organizations_url":"https://api.github.com/users/neos/orgs","repos_url":"https://api.github.com/users/neos/repos","events_url":"https://api.github.com/users/neos/events{/privacy}","received_events_url":"https://api.github.com/users/neos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neos/flow-development-collection","description":"The unified repository containing the Flow core packages, used for Flow development.","fork":false,"url":"https://api.github.com/repos/neos/flow-development-collection","forks_url":"https://api.github.com/repos/neos/flow-development-collection/forks","keys_url":"https://api.github.com/repos/neos/flow-development-collection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neos/flow-development-collection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neos/flow-development-collection/teams","hooks_url":"https://api.github.com/repos/neos/flow-development-collection/hooks","issue_events_url":"https://api.github.com/repos/neos/flow-development-collection/issues/events{/number}","events_url":"https://api.github.com/repos/neos/flow-development-collection/events","assignees_url":"https://api.github.com/repos/neos/flow-development-collection/assignees{/user}","branches_url":"https://api.github.com/repos/neos/flow-development-collection/branches{/branch}","tags_url":"https://api.github.com/repos/neos/flow-development-collection/tags","blobs_url":"https://api.github.com/repos/neos/flow-development-collection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neos/flow-development-collection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neos/flow-development-collection/git/refs{/sha}","trees_url":"https://api.github.com/repos/neos/flow-development-collection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neos/flow-development-collection/statuses/{sha}","languages_url":"https://api.github.com/repos/neos/flow-development-collection/languages","stargazers_url":"https://api.github.com/repos/neos/flow-development-collection/stargazers","contributors_url":"https://api.github.com/repos/neos/flow-development-collection/contributors","subscribers_url":"https://api.github.com/repos/neos/flow-development-collection/subscribers","subscription_url":"https://api.github.com/repos/neos/flow-development-collection/subscription","commits_url":"https://api.github.com/repos/neos/flow-development-collection/commits{/sha}","git_commits_url":"https://api.github.com/repos/neos/flow-development-collection/git/commits{/sha}","comments_url":"https://api.github.com/repos/neos/flow-development-collection/comments{/number}","issue_comment_url":"https://api.github.com/repos/neos/flow-development-collection/issues/comments{/number}","contents_url":"https://api.github.com/repos/neos/flow-development-collection/contents/{+path}","compare_url":"https://api.github.com/repos/neos/flow-development-collection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neos/flow-development-collection/merges","archive_url":"https://api.github.com/repos/neos/flow-development-collection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neos/flow-development-collection/downloads","issues_url":"https://api.github.com/repos/neos/flow-development-collection/issues{/number}","pulls_url":"https://api.github.com/repos/neos/flow-development-collection/pulls{/number}","milestones_url":"https://api.github.com/repos/neos/flow-development-collection/milestones{/number}","notifications_url":"https://api.github.com/repos/neos/flow-development-collection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neos/flow-development-collection/labels{/name}","releases_url":"https://api.github.com/repos/neos/flow-development-collection/releases{/id}","deployments_url":"https://api.github.com/repos/neos/flow-development-collection/deployments","created_at":"2015-08-18T09:48:13Z","updated_at":"2016-05-27T08:05:53Z","pushed_at":"2016-06-17T11:03:21Z","git_url":"git://github.com/neos/flow-development-collection.git","ssh_url":"git@github.com:neos/flow-development-collection.git","clone_url":"https://github.com/neos/flow-development-collection.git","svn_url":"https://github.com/neos/flow-development-collection","homepage":"http://flow.typo3.org/","size":37096,"stargazers_count":38,"watchers_count":38,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":34,"forks":69,"open_issues":34,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/390"},"html":{"href":"https://github.com/neos/flow-development-collection/pull/390"},"issue":{"href":"https://api.github.com/repos/neos/flow-development-collection/issues/390"},"comments":{"href":"https://api.github.com/repos/neos/flow-development-collection/issues/390/comments"},"review_comments":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/390/comments"},"review_comment":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neos/flow-development-collection/pulls/390/commits"},"statuses":{"href":"https://api.github.com/repos/neos/flow-development-collection/statuses/0128630408b178bdd76cdb11f6caa42ea31122b1"}}}}
{"actor":{"display_login":"dlubitz"}}