{"action":"created","issue":{"url":"https://api.github.com/repos/amoffat/sh/issues/282","labels_url":"https://api.github.com/repos/amoffat/sh/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/amoffat/sh/issues/282/comments","events_url":"https://api.github.com/repos/amoffat/sh/issues/282/events","html_url":"https://github.com/amoffat/sh/issues/282","id":115128262,"number":282,"title":"long line truncated in stdout ?","user":{"login":"aboudreault","id":532356,"avatar_url":"https://avatars.githubusercontent.com/u/532356?v=3","gravatar_id":"","url":"https://api.github.com/users/aboudreault","html_url":"https://github.com/aboudreault","followers_url":"https://api.github.com/users/aboudreault/followers","following_url":"https://api.github.com/users/aboudreault/following{/other_user}","gists_url":"https://api.github.com/users/aboudreault/gists{/gist_id}","starred_url":"https://api.github.com/users/aboudreault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboudreault/subscriptions","organizations_url":"https://api.github.com/users/aboudreault/orgs","repos_url":"https://api.github.com/users/aboudreault/repos","events_url":"https://api.github.com/users/aboudreault/events{/privacy}","received_events_url":"https://api.github.com/users/aboudreault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-04T19:25:01Z","updated_at":"2015-11-05T18:12:56Z","closed_at":null,"body":"It looks like long line are truncated, which make a command fails.\r\n\r\n```\r\nsh.grep(sh.ps('aux'), \"-ie\", \"java.*Cassandra\")\r\n```\r\n\r\nwhile this shell command works well: \r\n\r\n```\r\n ps aux | grep -ie \"java.*Cassandra\"\r\n```\r\n\r\nAnything I should know about the line truncated?"},"comment":{"url":"https://api.github.com/repos/amoffat/sh/issues/comments/154141804","html_url":"https://github.com/amoffat/sh/issues/282#issuecomment-154141804","issue_url":"https://api.github.com/repos/amoffat/sh/issues/282","id":154141804,"user":{"login":"amoffat","id":259113,"avatar_url":"https://avatars.githubusercontent.com/u/259113?v=3","gravatar_id":"","url":"https://api.github.com/users/amoffat","html_url":"https://github.com/amoffat","followers_url":"https://api.github.com/users/amoffat/followers","following_url":"https://api.github.com/users/amoffat/following{/other_user}","gists_url":"https://api.github.com/users/amoffat/gists{/gist_id}","starred_url":"https://api.github.com/users/amoffat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoffat/subscriptions","organizations_url":"https://api.github.com/users/amoffat/orgs","repos_url":"https://api.github.com/users/amoffat/repos","events_url":"https://api.github.com/users/amoffat/events{/privacy}","received_events_url":"https://api.github.com/users/amoffat/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T18:12:56Z","updated_at":"2015-11-05T18:12:56Z","body":"So here's a clue...  `sh.ErrorReturnCode_1` is being raised.  According to the grep man page:\r\n\r\n> The  exit  status is 0 if selected lines are found, and 1 if not found.  If an error occurred the exit status is 2.  (Note: POSIX error handling code should check for '2' or greater.)\r\n\r\nSo your process is not being found.  I don't have cassandra installed so I can't do the exact search, but when I do a similar star search:  `sh.grep(sh.ps('aux', _piped=True), \"-ie\", \"google.*chrome\")`, I get output."}}