Message11885

Author psykiatris
Recipients jeff.allen, mga792, psykiatris
Date 2018-04-07.16:23:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <ac7f1a7a-de0b-6c00-be63-6319687f9630@gmail.com>
In-reply-to <1523088639.07.0.682650639539.issue2664@psf.upfronthosting.co.za>
Content
Yes, I saw in the documentation after I posted. It was pretty late. :/

I managed to get it working with a regular ping. I changed argv into a 
list, changed shell to False and added executable. I left the input 
string (as it was assigned to stdoutdata, but I didn't observe any 
newlines, so I will test again with a different string, now that I know 
it works.

Thank you for your patience.

Attaching patch files.

On 04/07/2018 01:10 AM, Jeff Allen wrote:
> Jeff Allen <ja.py@farowl.co.uk> added the comment:
>
> return p.communicate(input)  <-------NOT fine. Maybe because it's trying to put something back in the stream.
>
> Not really "back in the stream". It writes to the stdin of the subprocess.
>
Files
File name Uploaded
tnsping1.patch psykiatris, 2018-04-07.16:23:29
tnsping2.patch psykiatris, 2018-04-07.16:23:30
History
Date User Action Args
2018-04-07 16:23:30psykiatrissetrecipients: + psykiatris, jeff.allen, mga792
2018-04-07 16:23:30psykiatrislinkissue2664 messages
2018-04-07 16:23:30psykiatriscreate