{"action":"created","issue":{"url":"https://api.github.com/repos/sshnet/SSH.NET/issues/442","repository_url":"https://api.github.com/repos/sshnet/SSH.NET","labels_url":"https://api.github.com/repos/sshnet/SSH.NET/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/sshnet/SSH.NET/issues/442/comments","events_url":"https://api.github.com/repos/sshnet/SSH.NET/issues/442/events","html_url":"https://github.com/sshnet/SSH.NET/issues/442","id":338290131,"node_id":"MDU6SXNzdWUzMzgyOTAxMzE=","number":442,"title":"Linux \"|\" pipe not working at all","user":{"login":"djgamerr","id":31158662,"node_id":"MDQ6VXNlcjMxMTU4NjYy","avatar_url":"https://avatars3.githubusercontent.com/u/31158662?v=4","gravatar_id":"","url":"https://api.github.com/users/djgamerr","html_url":"https://github.com/djgamerr","followers_url":"https://api.github.com/users/djgamerr/followers","following_url":"https://api.github.com/users/djgamerr/following{/other_user}","gists_url":"https://api.github.com/users/djgamerr/gists{/gist_id}","starred_url":"https://api.github.com/users/djgamerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgamerr/subscriptions","organizations_url":"https://api.github.com/users/djgamerr/orgs","repos_url":"https://api.github.com/users/djgamerr/repos","events_url":"https://api.github.com/users/djgamerr/events{/privacy}","received_events_url":"https://api.github.com/users/djgamerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-04T14:07:10Z","updated_at":"2018-08-03T09:28:45Z","closed_at":null,"author_association":"NONE","body":"when i use renci.sshnet to create command with pipes eg:\r\ndim cmd = client.CreateCommand(\"dmesg | grep -i usb\")\r\ni get a full dmesg result without the pipe, while it works perfectly fine in putty. what am i doing wrong?"},"comment":{"url":"https://api.github.com/repos/sshnet/SSH.NET/issues/comments/410199142","html_url":"https://github.com/sshnet/SSH.NET/issues/442#issuecomment-410199142","issue_url":"https://api.github.com/repos/sshnet/SSH.NET/issues/442","id":410199142,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDE5OTE0Mg==","user":{"login":"djgamerr","id":31158662,"node_id":"MDQ6VXNlcjMxMTU4NjYy","avatar_url":"https://avatars3.githubusercontent.com/u/31158662?v=4","gravatar_id":"","url":"https://api.github.com/users/djgamerr","html_url":"https://github.com/djgamerr","followers_url":"https://api.github.com/users/djgamerr/followers","following_url":"https://api.github.com/users/djgamerr/following{/other_user}","gists_url":"https://api.github.com/users/djgamerr/gists{/gist_id}","starred_url":"https://api.github.com/users/djgamerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgamerr/subscriptions","organizations_url":"https://api.github.com/users/djgamerr/orgs","repos_url":"https://api.github.com/users/djgamerr/repos","events_url":"https://api.github.com/users/djgamerr/events{/privacy}","received_events_url":"https://api.github.com/users/djgamerr/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T09:28:45Z","updated_at":"2018-08-03T09:28:45Z","author_association":"NONE","body":"https://www.google.com/search?q=pfsense+shell&client=firefox-b-ab&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjfwO_SyNDcAhUF1ywKHTm3CrUQ_AUICigB&biw=1540&bih=858#imgrc=UGss6n1KYBNg2M:\n\nTake a look at this image, instead of this shell can i drop to bash directly without sending „8“?\n\nThanks for the help\n\nPoslano iz programa Pošta<https://go.microsoft.com/fwlink/?LinkId=550986> za Windows 10\n\n________________________________\nFrom: Keith Jackson <notifications@github.com>\nSent: Thursday, August 2, 2018 11:36:18 PM\nTo: sshnet/SSH.NET\nCc: djgamerr; Mention\nSubject: Re: [sshnet/SSH.NET] Linux \"|\" pipe not working at all (#442)\n\n\n@djgamerr<https://github.com/djgamerr>\n\nNot sure what you mean by \"gonig into shell directly.\"\n\nWhat you can do is first capture the prompt\n\nvar bannerPromptRegex = new Regex(@\"(?sm)(?<banner>.*)\\s+(?<prompt>.*?[#>])\\s+\\k<prompt>\"\nshell.Write('\\r');\nvar output = shell.Expect(bannerPromptRegex, TimeSpan.FromSeconds(30));\nvar match = bannerPromptRegex.Match(output);\nvar prompt = match.Groups[\"prompt\"].Value\nvar banner = match.Groups[\"banner\"].Value\n\nThen, send your commands and get output from expecting the prompt\n\nshell.Write(\"sudo /bin/doSomethingCool\\r\")\nvar commandOutput = shell.Expect(prompt, TimeSpan.FromSeconds(30));\n\n—\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub<https://github.com/sshnet/SSH.NET/issues/442#issuecomment-410075324>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdtxhpqZSU9t1t9wKIqKGBNKZrq78FnIks5uM3DSgaJpZM4VCpWF>.\n"}}
{"actor":{"display_login":"djgamerr"}}