Questions tagged [communicate]
129 questions
0
votes
1 answer
File sharing between devices using network
I want to write a simple app to communicate between devices. I mean send very small files (small images, text or audio files) from one device to another but not using bluetooth or nfc but by internet. How can I do this and would this be hard to do…

fgsh
- 17
- 5
0
votes
2 answers
how do i call a published google script from another google script? the scripts are in different accounts
//script calling the published script, this script is in the account 1
function callScript(){
try{//published url
var response =UrlFetchApp.fetch("https://script.google.com/macros/s/../exec? calendar='CalendarName'");//calendar name as…

user3325434
- 1
- 1
0
votes
1 answer
Not able to fetch log files from shell using python
I am trying to use subprocess module with Popen to fetch log from a specified URL, However, I am not able to fetch the log and the program returns me a blank.
I have been using the below mentioned code:
import subprocess
url =…

user2436752
- 5
- 1
0
votes
2 answers
socket.io get data from onclick action then pass the data to other pages to execute the data
I want to create a page using node.js and socket.io.
There are two buttons inside the page, when I click one of them, it will change a variable which defines the animation-duration(I omit the CSS animation codes here).
When I open the same page on…

Eli Dai
- 51
- 2
- 6
-1
votes
1 answer
Subprocess wait() function doesn't seem to be waiting for the subprocess to complete
I'm trying to run a php script with python's subprocess module.
proc = subprocess.Popen(['php', '-f', test.php], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
retCode = proc.wait
print retCode
val = float(kprocess.stdout.read())
return…

anonymous
- 1
- 1
- 1
-1
votes
1 answer
How can I use Python to automate an external .exe which takes multiple user inputs interactively on the Windows command line?
I have an executable that I can run interactively from the windows command line. The workflow is as follows:
C:\Users\Me> my_executable.exe # Running the executable from CMD
Welcome! Please choose one:
0: Exit
1: Sub-task 1
2: Sub-task 2
Enter…

Chaos
- 466
- 1
- 5
- 12
-2
votes
1 answer
Communicate with Java program from Python
My Python progam is "check.py"
import os.path,subprocess
from subprocess import STDOUT,PIPE
def compile_java(java_file):
subprocess.check_call(['javac', java_file])
def execute_java(java_file):
java_class,ext = os.path.splitext(java_file)
…

Viraj Kamath
- 71
- 1
- 4
- 8
-3
votes
1 answer
What method is there available to communicate 2 computers using Javascript & Ajax?
The whole point is to understand how computers should communicate with each other using javascript (no jQuery framework) and ajax (by using XMLHttpRequest). I have a memory game and I would like to add an online option for people so they can play…

Aerial
- 1,185
- 4
- 20
- 42
-4
votes
1 answer
communicating variables between go and javascript
Writing a website connected to a Go backend
I am able to pass data to the html template and thus the front end but can not then use that data for a am missing the code skill in javascript.
How can a Go variable {{Gopher9}} be read by javascript…

GoPher9
- 39
- 4