Questions tagged [communicate]

129 questions
1
vote
3 answers

Communicate between 2 Android devices

I need a way to send messages between 2 android devices, 1 a phone and 1 a tablet. I'm using Java to create the app. I'm looking at servers but I can't figure out where to start. Thanks for any help :-) P.s. Both devices would be using the same…
user1056798
  • 245
  • 6
  • 20
1
vote
1 answer

Pass data to a BackgroundServiceAgent

I have two projects, one of them is a "Windows phone application" and the other is a "Windows phone Audio player Agent". In order to provide the AudioPlayer with something like "the next track" I need a way to communicate between my application and…
Philiiiiiipp
  • 705
  • 1
  • 9
  • 24
1
vote
1 answer

Python: calling Fortran with subprocess and giving commands via communicate

I want to call a Fortran program from python. I use the Popen statement from subprocess like this: p = Popen(['./finput'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) I then want to send some file names to the fortran program. The fortran program reads…
red_tiger
  • 1,402
  • 3
  • 16
  • 32
1
vote
2 answers

How can I make Objects communicate with each other in Python?

I am making a little project for Neurons on replit. I made a class called Neurons. I set connections = []. I created a function called connect() to connect two Neurons via synapses. If one neuron fires, all of the other Neurons in the connections…
EmmaGao8
  • 83
  • 9
1
vote
2 answers

How to communicate between dm-script and python in Digital Micrograph

How do I comminucate between dm-script code and python code, both executed in Digital Micrograph? In my specific case I have complicated dialogs. Sice the dialogs are not supported in python but in dm-script, I wrote my dialogs in dm-script. The…
miile7
  • 2,547
  • 3
  • 23
  • 38
1
vote
2 answers

(website data exchange || communication between sites) via php

Is there any way to send simple string from websiteA.com -to-> websiteB.com with php? Where websiteB.com "listens"(as not knowing the existence of websiteA.com) any incoming simple strings sent and receives it?
peldur
  • 11
  • 1
1
vote
0 answers

Python subprocess with stdin

I am trying to use the python subprocess to invoke a third party command ParseAddress. The command ParseAddress prints out a line of text asking a user to input a list of addresses, then, based on the input it prints out stack trace info. If I…
r0n9
  • 2,505
  • 1
  • 29
  • 43
1
vote
1 answer

exposed beyond app through ClipData.Item.getUri()

My API Version is 24 I'm using Camera and Bluetooth. And my device communicating other device. The first function is, I'm going to call up the camera app from my app, take a picture and send it to other device. The second function is, I want to…
user10993563
1
vote
1 answer

Nifi - Remote Process Group - PeerSelector

I have build a simple Process Group. It generates a FlowFile with some random stuff in it and sends it to the Nifi Remote Process Group. This Remote Process Group is configured to send the FlowFile to localhost or in this case to my own Hostname (I…
1
vote
0 answers

subprocess.Popen communicate fails randomly with zero returncode and no error

I have a routine that frequently executes a shell command and parses the output from it. For this I am using the subprocess.Popen to execute the shell command. Tested with the shell commands ls , systemctl status xxxx.service etc. Platform - Linux…
1
vote
0 answers

Python: Unicode error when passing password to sudo using subprocess.Popen.communicate

I have a tkinter Python 3 program that needs sudo privileges, so it checks for that and if you don't have it, it'll ask for your password and then rerun the program with sudo. My current code works when just running the code like, python3…
FrailOtis
  • 11
  • 1
1
vote
2 answers

Share data and communicate between php code and .Net application on the same server

For my college project i wish to make a website(PHP) that communicates(possibly in realtime) with a .Net desktop app(WPF) on the same server.Being a complete noob with php,i do not see any way to do this directly,any help in the right direction just…
Atif
  • 129
  • 1
  • 14
1
vote
1 answer

Send input (command) with communicate to created Subprocess Python

I have created a Subprocess object. The subprocess invokes a shell, I need to send the shell command provided below to it. The code I've tried: from subprocess import Popen, PIPE p =…
Ruse Bolton
  • 11
  • 1
  • 3
1
vote
1 answer

Communicate between siblings in React

I'm trying to create reusable timebar where it accepts a date as prop and returns two dates, left and right (for example ceil or floor dates...potentially have more logic in it). I'm trying to figure out what the best way to communicate this to a…
1
vote
0 answers

Pipe Communicate gets stuck

I am making Popen call as below. And yes I need shell=True. f = tempfile.TemporaryFile(suffix = ".txt", prefix = "Result_", dir = tempfile.gettempdir(), delete = False) pp = psutil.Popen(run, shell = True, stderr = f, stdin = subprocess.PIPE, stdout…
santosh
  • 57
  • 7
1 2 3
8 9