Questions tagged [external-process]
167 questions
7
votes
2 answers
Memory limit for running external executables within Asp.net
I am using WkhtmltoPdf in my C# web application running in .NET 4.0 to generate PDFs from HTML files. In general everything works fine except when the size of the HTML file is below 250KB. Once the HTML file size increases beyond that, the process…

itsbalur
- 992
- 3
- 17
- 39
6
votes
3 answers
system() and CreateProcess() / CreateProcessW()
I want to execute a TEST.exe in a C program. While I use
system( "TEST.exe output-file" );
I can get what I expected.
But CreateProcessW() didn't work properly when I use the following code (see How do I run an external program?):
if…

dehiker
- 91
- 1
- 6
6
votes
2 answers
Call popen with environment
In my Lua program i have to catch output from an external program. This external program needs certain environment variables. So i do this:
e = ""
e = e .. "A=100;"
e = e .. "B=Hi;"
e = e .. "C=Test;"
file = io.popen(e .. "/bin/aprogr")
Obviously…

PeterMmm
- 24,152
- 13
- 73
- 111
6
votes
1 answer
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 }' infile_$(i)`
run(callmop)
end
function fpar()
…

panadestein
- 1,241
- 10
- 21
6
votes
1 answer
Lauch external program in firefox or chrome
We have a custom web app in our intranet that allow users to browse and search our shared file system in a way more appropriate for our organization. as compared to windows explorer/mac finder. However, when the users click on, for example, a link…

Hernan
- 5,811
- 10
- 51
- 86
6
votes
2 answers
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. Example:
arguments = " "
for i in range(1,20):
…

nibbana
- 698
- 1
- 8
- 21
5
votes
2 answers
C - going from ncurses ui to external program and back
I'm making a program that displays some info in ncurses, and then opens vim (using system) to allow the user to edit a file. After vim is exited, though, the ncurses screen won't redraw. refresh and wrefresh don't do anything, resulting in the…

ty.
- 10,924
- 9
- 52
- 71
5
votes
3 answers
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 found was:
import subprocess
import os
i =…

Giorgi Kokaia
- 53
- 3
5
votes
2 answers
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 Action->Start external program (with setting proper…

bairog
- 3,143
- 6
- 36
- 54
5
votes
2 answers
No input from ProcessBuilder's InputStream until external process is closed
Whilst building an wrapper for an console application I came across this weird issue where the Input Stream connected to the output (stdout) of the external process is completely blank until the external process exits.
My code as below:
import…

initramfs
- 8,275
- 2
- 36
- 58
5
votes
3 answers
Piping data from python to an external command
I've read everything there is on subprocess.Popen but I think I'm missing something.
I need to be able to execute a unix program which reads a data stream from a list created in the python script and write the result of that program to a file. From…

Shahar
- 886
- 1
- 10
- 22
5
votes
3 answers
A Java program that runs an external "java myprog < input.txt > output.txt"
I want to write a Java program that runs an external "java myprog < input.txt > output.txt" command. The eventual goal is to run this command on two different programs and compare their output similarity from their respective output files.
I think…

missthang
- 51
- 3
4
votes
4 answers
Is there a good way to stream the results from an external process into a Visual Studio output pane?
I have a custom output pane set up in a VsPackage similar to the following:
///--------------------------------------------------------------------------------
/// This property gets the custom output pane.
…

Dave Clemmer
- 3,741
- 12
- 49
- 72
4
votes
3 answers
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")
os.popen("C:\mainfolder\menu.exe…

Sarah
- 325
- 6
- 17
4
votes
1 answer
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 is that Windows detects the process crashed and…

Marcelo
- 2,232
- 3
- 22
- 31