Questions tagged [external-process]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

Interract with a .exe program with js instead of typing in the program

Hello I'm tryna make a Skyrim server Dashboard. The server look like this => On this server i can type some command like this => when I manualy wrote /help and it show the output. I tried to ...
1 vote
0 answers
37 views

Scala external Process gets hanged

We need to run the following command as external process and process with input/output to insert data and get output. docker-compose run --rm test-service The source code sample is provided below: // ...
0 votes
0 answers
83 views

How to find which process is handling the file?

I am creating a file (e.g. myfile.sql) and I want to open the file in the associated application (e.g. SSMS): Process proc = new Process(); proc.StartInfo.UseShellExecute = true; proc.StartInfo....
  • 4,922
0 votes
1 answer
528 views

Controlling external program with python

for my studies I need to process a lot of data. The data needs to be analyzed by a program called VMD and should finally be stored in an excel sheet. My aim is to automate the whole process instead of ...
0 votes
1 answer
84 views

Working with (not uploading) large files in ASP.NET

I manage to upload to my asp.net web app site large files (over 10mb). I have changed the web.config for that reason. However the web app gets idle when I work with those large files on my web-server. ...
6 votes
1 answer
376 views

Parallel implementation slower than serial in Julia

Why in the following Julia code the parallel implementation runs slower than the serial? using Distributed @everywhere function ext(i::Int64) callmop = `awk '{ sum += $1 } END { print sum }' ...
  • 1,211
-1 votes
1 answer
465 views

Execute an external program from an android app

I need to execute 'nmap' binary for my app. I use the wrapper nmap4j, in which i write the path on the device "sdcard/Nmap/bin/nmap". try { nmap4j.execute(); } catch(Exception e) { System.out....
  • 1
1 vote
2 answers
282 views

Starting from Excel (VBA): Launch an external interactive program, and in there launch commands and read their output : is this possible?

Currently I'm doing the following for analysing a memory leak: I open both dumps, using Windbg. I launch heap_stat script, a Python-based script for making a summary of the objects, used in the heap. ...
  • 15.7k
0 votes
1 answer
236 views

Javafx mac terminal external process

Using JavaFX, I am trying to run a program a.out on Terminal of Mac OSX. The following code does not work on Mac. The same code works on Windows by writing cmndM={"cmd","/c","start","a.exe"}. What's ...
0 votes
1 answer
53 views

How to create a process on node from a JVM which is running other node

I have got an usecase where I have to call python script from Java program. Java process (JVM) will have to launch a process on other system/node (not within the same node). How this can be achieved?
0 votes
0 answers
186 views

FreePascal FFmpeg started by TProcess stops working

I create TPorocess for ffmpeg to stream a video from /dev/video0 in Linux Ububntu 14.04. After 5 minutes of work the stream send stops and on the receiveng side (ffplay) the picture freezes. The ...
  • 1,817
0 votes
1 answer
149 views

CMake activate external program

I want to run the following command win_bison.exe --output="calc.tab.cpp" --defines="calc.tab.h" "calc.y" and then create an executable from the products of this command with CMake ...
-3 votes
1 answer
155 views

Python 3.6: How to spawn multiple external exe instances from function(generator) in multiprocess

How to spawn multiple parallel external exe instances from function(generator) for x1 in x: in multiprocessing manner(to keep always one exec running per cpu thread)? If there is no method to do it in ...
  • 1
0 votes
1 answer
142 views

How to run a external process on a PyQt5 OSX app, without crashing the app?

I'm currently building an app that uses OCR to extract data from PDF files using PYQT5, and I need to use the terminal to convert the pdf into jpeg's before running the OCR; however, when I run this ...
2 votes
1 answer
346 views

Blocking until process ends in Tiny Process Library

I am writing C++ code that accepts a command line argument, passes it to a system command like echo and prints the response. To communicate with external process, I am using tiny-process-library. The ...
  • 1,980
1 vote
1 answer
88 views

Batch scripting.. i want to run a command automatically based upon user input

writing a script so that when a certain value is returned it opens cmd. Then using a value that the user has added automatically run a command in cmd. not sure if this is even possible or not but any ...
0 votes
0 answers
44 views

Identifying (grouping?) and terminating stray (detached) processes in Java

My integration tests in Maven require to start some external processes (servers). If the user aborts the maven process, those processes continue to linger around. I used to add a 'key' (ie. ...
3 votes
0 answers
465 views

C# How to get thread info from external process? Like name of the module which created the thread?

Basically what i'm trying to do is something like this: Pseudo code: if(ThreadMomModule.Name == "Skype.dll") { Thread[] aa = MomModule.Threads; foreach(Thread at in aa){ Suspend(aa);} }
  • 31
1 vote
2 answers
364 views

Cannot get input stream working in SBCL sb-ext:run-program

While the following works: (let* ((i (make-string-input-stream "foo bar baz")) (p (sb-ext:run-program "/bin/cat" '() :input i :output *trace-output* :wait t))) (sb-ext:process-...
0 votes
1 answer
51 views

Run external program with custom argumets

I am trying to run an external program with custom arguments placed in text field. Here is my code: String customPARAM = textfield.getText(); try { new ProcessBuilder("MyEXE.exe", "-param1 " + ...
  • 179
0 votes
1 answer
66 views

How can SQLAnywhere's "external CLR" access a System Process

In need of an extension in SQLAnywhere (16) to access some DOS functions on the server where the DB is running, I tried : A first code for a DLL to be called from Sybase ________! SAExternal.vb !...
  • 1
3 votes
3 answers
6k views

Start and Stop external process from python

Is there a way to start and stop a process from python? I'm talking about a continues process that I stop with ctrl+z when normally running. I want to start the process, wait for some time and then ...
  • 879
5 votes
3 answers
1k views

Running multiple external programs

So, I set up a short script which executes an external program (written in Fortran 77). I want to run multiple instances of the program and since I have 8 cores on my computer the simplest solution I ...
0 votes
2 answers
65 views

What is the preferred way of piping information into another process in Java?

I need to pipe data into another process. The data is an array of strings that I concatenated into one large string. The external process accepts a text file. Currently, I am writing the string into a ...
  • 3,919
2 votes
1 answer
3k views

ImageMagick compare: exit code 1 when spawned from Node.js, but exit code 0 when run from the command line

$ compare --version Version: ImageMagick 6.9.1-1 Q16 x86_64 2015-04-15 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC License: http://www.imagemagick.org/script/...
0 votes
2 answers
2k views

Running external command using python 2.7 in Windows

I am a novice user in python and I am having a problem in executing external command with command-line switch (using python 2.7 in Windows 8 64-bit): lammpsExe = 'C:/Program Files (x86)/LAMMPS 32-bit ...
0 votes
1 answer
354 views

Node.js: Get "Trying to open unclosed connection" when calling method from child process

I'm getting the "Error: Trying to open unclosed connection," but I don't believe it's due to a db issue... and that's why I'm stumped. Most solutions to this error, reference db connection issues. ...
3 votes
2 answers
2k views

How to check if command is exists?

I need to detect if app is present in system. I use for it std.process the next code is trow exception if executable command do not exists: try { auto ls = execute(["fooapp"]); if (ls.status ...
  • 1,419
0 votes
2 answers
190 views

Control an external process with PHP

I have a web page where I show the status of some processes (in a table, one row for each process). The user have the options to start the process or to force it to stop. When the user click to start ...
  • 521
0 votes
1 answer
609 views

Speed-up external call in Java

I have a program in JAVA that needs to call two other external executables (written in C++) thousands of times per launch. Actual time for calculations in each of them is effectively milliseconds, so ...
  • 2,145
2 votes
1 answer
157 views

Simplest way of calling external program without stream capture [duplicate]

What is the simplest way to call an external program from Java without capturing the stdin/stdout/stderr streams? A simple way for calling an external program is sth like Runtime.getRuntime().exec(...
  • 55.1k
0 votes
2 answers
202 views

Starting CherryPy from Java results in not responding answers

I have a Python-Project for which I created a CherryPy-Webservice-Wrapper to access it via a Java-Client (a self developed Eclipse plugin in particular). The CherryPy-Server is also started from Java ...
  • 2,585
0 votes
0 answers
218 views

Divide windows form into 4 section and view diffrent orientation panel in each section

I want to develop the windows desktop application(.NET) for the large all in one touch screen. the screen must be divided into 4 section and lower sections view as normally and upper section view as ...
4 votes
3 answers
2k views

How to know if an external process has finished in python?

I am working from a windows platform. In my python script, I can make a call to an external program in the following way: os.system("C:\mainfolder\menu.exe C:\others\file1.inp C:\others\file2.inp") ...
  • 325
0 votes
2 answers
1k views

How to interact with a C console application from within my Java application

I know this has been asked before, but, as it happens to people sometimes, other answers didn't seem to help. I need to start a C application and pass it a few inputs to navigate through its menu to ...
0 votes
1 answer
147 views

Is running an external document part of the presentation layer?

I have an application that creates an MS Word document and runs it. I'm trying to figure out which layer to put that code in. Would running the external document be part of the presentation layer or ...
  • 34k
1 vote
1 answer
1k views

Profiling a Python program that calls parallel external programs

Similar to this question on profiling multiprocessing code... I need to profile my codebase, and I'd planned to use cProfile. This program is essentially a genetic algorithm that runs an evaluation ...
  • 3,906
0 votes
1 answer
177 views

Ruby : get output of external command even when there is no line break

I try to run an external command in Ruby, and parse its output . IO.popen(command, :err=>[:child, :out]) {|ls_io| ls_io.each do |line| print line end } This way of doing it works ...
  • 357
4 votes
1 answer
1k views

How to detect an external process crash in Java?

I am working on an application that needs to launch a process and wait for its output. Sometimes the process crashes (very often,) but is not really an issue since I have mitigation tasks. The problem ...
  • 2,202
4 votes
0 answers
1k views

How to run interactive python script using apache common exec?

I am trying to run a python script using Apache Commons exec.I need to pass some values to python script as python script in an interactive one.How to do it? My attempt was to set values in parent ...
5 votes
2 answers
20k views

multiprocessing - execute external command and wait before proceeding

I am using Linux. I have an external executable called "combine" and a loop of 20 iterations. Per each iteration, "combine" needs to be called with an argument that depends on the i-th iteration. ...
  • 678
1 vote
1 answer
288 views

Java Open external program then close java program

Alright, I have a shutdown hook that makes sure I close my connection nicely whenever I close. What I need to do now is open another program (terminal emulator) then close mine while leaving the ...
  • 175
1 vote
1 answer
384 views

Emacs Lisp: Which function called?

Is there a way to find out, what function called? Let's say, there's a handler-function that monitors requests to an external process. Before it processes the requests, it prints them into a log ...
  • 13
0 votes
1 answer
403 views

Trouble opening PYTHON keylogger with the launching of an external program?

Sorry for the ignorance, but I could not find a solution!! p.s.: I'm "hacking to learn and not learning to hack" -Tinkernut (youtube_channel) I had a simple keylogger.pyw and a notepad batch file so ...
2 votes
2 answers
11k views

Execute external program ( like skype.exe) using php

I have tried launch an external application installed in the C:\Program Files (x86)\Hewlett-Packard\HP MyRoom\MyRoom.exe using php. SAMPLE 1 : I'm using exec function and popen and system. But ...
  • 1,510
0 votes
2 answers
254 views

Empty file output from calling external program with output redirection in C++

From C++ source, I execute the following line: system("../BWAPI/ITUBot/Clingo/clingo.exe bwapi-data/AI/ITUBotWall.txt > bwapi-data/AI/solver-out.txt"); This line causes an empty solver-out.txt to ...
  • 3,427
1 vote
1 answer
1k views

ProcessBuilder does not find the executable after moving to Spring Boot

I have a java class running as a task (as a plugin in an Java CMS) which used Quartz. I am now moving it out of the CMS and into a Spring Boot (v1.0.2) project and am using @Scheduled annotation. The ...
  • 837
5 votes
2 answers
4k views

Debugging when my code is started by external program with Process.Start()

Suppose I have a C# WinForms application and it is started by external program simply by using Process.Start(MyModule.exe). I've tried to debug my code by using My project properties->Debug->Start ...
  • 3,009
1 vote
4 answers
2k views

How to add external jar file doc in eclipse?

I am using external jar file in project, but I don't have any idea how to add doc for same project in Eclipse. I followed TIPS but it's same, nothing reflect on use of Content assist(Ctrl-Space). ...
  • 10.9k
2 votes
1 answer
1k views

Run Non-Visual GUI App from LocalSystem Service

Background We need to run a GUI application from a Windows Service, set to Log On as Local System (and without enabling interact with desktop). The GUI application takes one command-line parameter, ...
  • 9,302