Questions tagged [communicate]

129 questions
0
votes
0 answers

subprocess.communicate() causes python program to hang when sending input to minecraft server

I use this bit of code to start the server as a subprocess and put the stdout into a text file. with open('serverlog.txt', 'w') as outfile: proc = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=outfile, shell=False) and…
Akliph
  • 15
  • 1
  • 4
0
votes
0 answers

error cp: cannot stat 'ssh': No such file or directory

I want to run scp command in subprocess.Popen(cmd) like self.p = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE, encoding='utf-8') (self.out, self.err) = self.p.communicate() but file is being downloaded but it shows…
Gopal
  • 1
0
votes
1 answer

Trying to use Functions in one Page (and Class) to control or use Functions in another in Flutter

Okay. So I'm going to show some code, and I honestly don't know WHY it doesn't work. I just feel like I'm out of my depth, and this is very frustrating. Now this is NOT the program I'm actually working on, but a super-simple example program that…
ArthurEKing
  • 158
  • 2
  • 16
0
votes
2 answers

Can Python automatically communicate with SVN

I was hoping to implement an SVN communicator in my python program so that any file being worked on is automatically stored into the user's SVN account without any user interaction (username and password already provided so Python takes care of…
Chris Allen
  • 653
  • 4
  • 9
  • 17
0
votes
1 answer

Update a different component (nested on same level) after http call to Firebase has successfully posted data

I am trying to post some data to the firebase DB and prompt a success message which redirects the user to the same page, resetting the form in case the post request has been successful. The component involved are add-review.component.ts and…
mike87
  • 309
  • 2
  • 11
0
votes
0 answers

Other than webservices how two client server applications talk with each other?

I understand two applications can communicate with each other via web services or databases. Is there any other mode in which they communicate?
Manushi
  • 597
  • 1
  • 7
  • 26
0
votes
1 answer

Interacting servers using Twisted?

I have been dabling in some Twisted and I've come across a problem. I'm implementing a couple servers that can be connected to using telnet localhost x My code handles it like this: reactor.listenTCP(12001, server1, ....) reactor.listenTCP(12002,…
Bob
  • 1
0
votes
2 answers

App communication to iOS safari via cookies or whatever?

Am new to iphone dev. I want authenticate a user before he goes to real portal through safari. I heard that we can not access safari;s cookies space to add a cookie... this is not working as well, may be can not run javascript... url in…
Deam
  • 1,007
  • 2
  • 17
  • 36
0
votes
1 answer

NodeJS - Communicate between two circular processes

So i'm trying to make two node.js processes communicate. Here is a quick exemple of what i'm trying to do : Process1.js var process2 = require('./process2'); class Process1 { constructor() { this._value = process2.getValue(); …
0
votes
1 answer

Need to know common ways to communicate with backend in Swift

I'm new to the iOS world, but I have been working as a Software Developer and worked on many Web Applications with Laravel and PHP. My Question is now if PHP is a good server-side language for Swift, then what is the common way to communicate with a…
mrfr34k
  • 85
  • 11
0
votes
1 answer

how to call method of another sibling component - angular 1.5

I have two sibling components in one page need to call second component function and pass some value onClick event of first component link. // this has link to call function …
Sandeep Soni
  • 85
  • 1
  • 7
0
votes
0 answers

Communicate between two Laravel apps

I need some suggestion and possibilities... I have a product whose back-end is on Laravel 5.0 and front-end is built on Angular 2 Due to some SEO issues I am rewriting the front-end in Laravel. Here I wanted to know that if I am creating new…
webwarrior
  • 87
  • 1
  • 9
0
votes
1 answer

Python subprocess communicate freezes when reading output

I'm using Gphoto2 to take pictures on a DSLR. As its based on bash commands I tried to use subprocess.communicate but it freezes after the camera takes a picture. If I try the gphoto2 --capture-image-and-download in the terminal it takes less than…
Dennis
  • 21
  • 1
  • 7
0
votes
1 answer

Python subprocess communicate hangs

I know that this is a frequently asked question and I've tried any solution approach which I could find here and on other sites^but couldn't solve my problem. My dilemma looks as follows (on Windows): I have a main script (main.py) where I am…
braheem38
  • 23
  • 5
0
votes
2 answers

Why does more Bandwidth guarantee high bit rate?

The definition of bandwidth is frequency range and it seems to be correct to say that higher bandwidth guarantees higher data rate. However, i do not understand why it does Data rate depends on modulation scheme and nowdays QAM,which is combination…
장영록
  • 65
  • 1
  • 3
1 2 3
8 9