Questions tagged [communicate]
129 questions
0
votes
1 answer
How to externally control timeline in an Edge Animate composition
How do I talk or communicate to an Edge Animate composition via the html page within which it is embedded or via an external js file?

frogseatflies
- 133
- 2
- 9
0
votes
1 answer
Python Capture reply from powershell
The code below works when typed manually however when I run the program.py nothing prints. My ultimate goal is to retrieve this data from user pc to create an easy way to recreate shortcuts.... My users somehow lose them lol
import smtplib, os,…

John Shiveley
- 77
- 7
0
votes
1 answer
One to many relationship on viewModels of Knockout.js
I am newbie on KO. I try to design a simple application with knockout.js, but I couldn't figure out how to design modelViews and models.
I try to load tasks when the a feature row clicked. But after once load, then I want to show it from memory, not…

ahmet
- 702
- 1
- 10
- 29
0
votes
3 answers
Python Popen.communicate( ). TypeError: Expected String or Buffer, not List
CONTEXT
The code is supposed to get a file object and extract information from it using awk.
It uses readlines() with 'pieceSize' as an argument. 'pieceSize' is the number of MBs I want readlines() to work with as it goes through the file. I did…

Ominai Yu
- 1
- 1
0
votes
1 answer
Using process.communicate after popen fails
I'm trying to send command using ssh spawn to remote machine.
I'm sending the command using Popen() and I can see the command was done but after that I'm trying to use communicate() (to close the session and get a return code) and the program get…

MayaC
- 61
- 1
- 7
0
votes
1 answer
Getting STM32 Nucleo F030R8 to communicate with RX and TX pins
I'm having issues trying to get this Nucleo to send commands or receive commands using the online mbed compiler.
As a starter step, I am trying to connect the rx and tx pin on my Nucleo to try to send a command to itself and display it using serial…

user3065129
- 27
- 3
0
votes
1 answer
'Communicate' in Python does not work
I'm trying to write a python program to test a java program that takes input from stdin using Scanner.
All other posts point to using communicate with popen, but for me it absolutely does not work. When i run my python program, it just calls popen…

bgenchel
- 3,739
- 4
- 19
- 28
0
votes
1 answer
Popen.communicate\stdin.write stuck
I'm using python version 2.7.9 and when I try reading a line from a Popen process it's stuck until the process ends. How can I read from stdin before it ends?
If the input is '8200' (correct password) then it prints the output.
But if the password…

null
- 5
- 1
- 6
0
votes
0 answers
Python Communicate/Wait with a shell subprocess
Tried searching for the solution to this problem but due to there being a command Shell=True (don't think that is related to what I'm doing but I could well be wrong) it get's lots of hits that aren't seemingly useful.
Ok so the problem I is…

Steve
- 614
- 1
- 10
- 20
0
votes
0 answers
Make an app to send commands to android device and execute batch operations
I want to make an app to send commands from one android device to other android devices nearby and make these devices to run batch operations based on the sent commands. What is the best way to do this? Will that be via network or bluetooth? I will…

user2911996
- 63
- 1
- 2
- 10
0
votes
1 answer
Reading initial screen from application with Python
I am trying to read and print initial screen of gnuplot via subprocess module:
G N U P L O T
Version 4.6 patchlevel 4 last modified 2013-10-02
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
Thomas Williams, Colin…

user3794176
- 75
- 1
- 9
0
votes
2 answers
Writing the stdout of subprocess to a file using communicate
I am using subprocess to run a executable and piping the output of it using communicate. Finally, I write the contents of communicate to a file. The exact code is shown below
run = subprocess.Popen(['executable'], stdout=subprocess.PIPE)
output =…

hypersonics
- 1,064
- 2
- 10
- 23
0
votes
0 answers
Can multiple iOS simulators communicate with each other over wifi?
I'm working on Ray Wenderlich's "How to make a Simple Playing Card Game with Multiplayer and Bluetooth."
That game can use Wifi when Bluetooth is unavailable.
If I open an iOS simulator on a computer and another iOS simulator on a different…

user3731622
- 4,844
- 8
- 45
- 84
0
votes
1 answer
When popen performs status check on service that dosen't exist error no results returned
I am attempting to use subprocess.Popen() to read a service status.
If I get an unrecognized service error the value, while printed to the screen, is not saved to out or err for later viewing.
If the service does exist, "is running" gets saved to…

John87
- 603
- 1
- 5
- 9
0
votes
1 answer
Two processes substracting a number using pipe
Having difficulty to make two processes comunicate through pipe and substract a number alternatively.
Output should be like:
process1: 9
process2: 8
process1: 7...
What I've did so far:
#include
#include
#include…

user3642381
- 23
- 6