{"action":"created","issue":{"url":"https://api.github.com/repos/ESMCI/cime/issues/14","labels_url":"https://api.github.com/repos/ESMCI/cime/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ESMCI/cime/issues/14/comments","events_url":"https://api.github.com/repos/ESMCI/cime/issues/14/events","html_url":"https://github.com/ESMCI/cime/pull/14","id":102394677,"number":14,"title":"Updating submission output parsing to deal with newlines","user":{"login":"douglasjacobsen","id":334984,"avatar_url":"https://avatars.githubusercontent.com/u/334984?v=3","gravatar_id":"","url":"https://api.github.com/users/douglasjacobsen","html_url":"https://github.com/douglasjacobsen","followers_url":"https://api.github.com/users/douglasjacobsen/followers","following_url":"https://api.github.com/users/douglasjacobsen/following{/other_user}","gists_url":"https://api.github.com/users/douglasjacobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/douglasjacobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglasjacobsen/subscriptions","organizations_url":"https://api.github.com/users/douglasjacobsen/orgs","repos_url":"https://api.github.com/users/douglasjacobsen/repos","events_url":"https://api.github.com/users/douglasjacobsen/events{/privacy}","received_events_url":"https://api.github.com/users/douglasjacobsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ESMCI/cime/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-21T14:43:06Z","updated_at":"2015-08-21T21:40:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ESMCI/cime/pulls/14","html_url":"https://github.com/ESMCI/cime/pull/14","diff_url":"https://github.com/ESMCI/cime/pull/14.diff","patch_url":"https://github.com/ESMCI/cime/pull/14.patch"},"body":"This merge updates the submission portion of the BatchUtils file to\r\nremove newlines from within the output of the submission command.\r\n\r\nIf a newline exists (i.e. the jobid is not on the first line of the\r\ncommand output) the previous formulation fails. This new version fixes\r\nthe issue."},"comment":{"url":"https://api.github.com/repos/ESMCI/cime/issues/comments/133570189","html_url":"https://github.com/ESMCI/cime/pull/14#issuecomment-133570189","issue_url":"https://api.github.com/repos/ESMCI/cime/issues/14","id":133570189,"user":{"login":"jedwards4b","id":6126104,"avatar_url":"https://avatars.githubusercontent.com/u/6126104?v=3","gravatar_id":"","url":"https://api.github.com/users/jedwards4b","html_url":"https://github.com/jedwards4b","followers_url":"https://api.github.com/users/jedwards4b/followers","following_url":"https://api.github.com/users/jedwards4b/following{/other_user}","gists_url":"https://api.github.com/users/jedwards4b/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards4b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards4b/subscriptions","organizations_url":"https://api.github.com/users/jedwards4b/orgs","repos_url":"https://api.github.com/users/jedwards4b/repos","events_url":"https://api.github.com/users/jedwards4b/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards4b/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T21:40:15Z","updated_at":"2015-08-21T21:40:15Z","body":"Hi Doug,\r\n   Is this okay?  Using foreach and chomp instead of while and regex, really just a personal preference...\r\n\r\n-        $output = <$RUN>;\r\n-               close $RUN or die \"job submission failed: |$?|, |$!|\"\r\n+         foreach(<$RUN>){\r\n+           chomp;\r\n+           print \"$_\\n\";\r\n+           $output .= $_;\r\n+          }    \r\n+          close $RUN or die \"job submission failed: |$?|, |$!|\"\r\n"}}