Message11885
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.
> |
|
Date |
User |
Action |
Args |
2018-04-07 16:23:30 | psykiatris | set | recipients:
+ psykiatris, jeff.allen, mga792 |
2018-04-07 16:23:30 | psykiatris | link | issue2664 messages |
2018-04-07 16:23:30 | psykiatris | create | |
|