Questions tagged [external-process]
167 questions
0
votes
1 answer
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 wonders… except when I parse the progress-output of a…

MichaelC
- 357
- 2
- 12
0
votes
1 answer
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 that when I clicked on a specific browser it…

Mr. White
- 1
- 3
0
votes
2 answers
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 be created. If I execute the same command using…

Varaquilex
- 3,447
- 7
- 40
- 60
0
votes
1 answer
Capture console text of piped app to another app
I'm sorry if the title is quite confusing but I am wondering if it's possible to get the stdout of an app that is piped into another app in java.
Here's the commandline.
sox -d -t wav - | lame - test.mp3
If this is executed in bash, this is the…

ken
- 4,886
- 4
- 30
- 26
0
votes
2 answers
How can I pass arguments to an external process from Perl?
I have a application executable, which runs with different parameters to produce different outputs. I want to give some parameters to this from the command line parameters of the script and others will be local to the script. Usage:
./dump-output.pl…

gagneet
- 35,729
- 29
- 78
- 113
0
votes
2 answers
Finding and opening any .exe file in C:/
I'm trying to create a small Java program that allows you to ask it to open an .exe file in a java window I created.
Here's a small example of what I want
User: Open chrome
Program: starts looking for a file called chrome.exe in C:/ and opens…

user3231227
- 67
- 1
- 8
0
votes
0 answers
Why would Process.UseShellExecute = true cause ntdll to crash with a heap corruption when accessing a Delphi DLL?
A little back-story:
When testing an installer for our C# (.NET 4.0) software recently, we installed on 7 or 8 different machines with success. But, one of our QA members installed and was able to get the application to consistently crash on his…

Danno
- 53
- 1
- 7
0
votes
1 answer
Interrupt an external method call in java Thread
My java program use an external method(i dont have the source code) that takes a while to finish so i have made the call to that method in a Thread class (in its run method). Now the problem is how do I stop the Thread instantly (not wait for the…

Tom
- 139
- 2
- 6
0
votes
1 answer
Is it possible to call external scripts and retrieve output using nginx?
My site has a search function at /search/. For every search request captured by nginx, I want to run a Python script and have nginx behave differently depending on the output of said script, whether it's the exit code or stdout. So something like…

user1814016
- 2,273
- 5
- 25
- 28
0
votes
4 answers
How can I get a directory listing from DOS in Perl?
I need to get directory names from the path passed to the Perl script as run time argument.
Here is the code I'm using:
$command ="cd $ARGV[0]";
system($command);
$command="dir /ad /b";
system($command);
@files=`$command`;
But it still returns the…

fixxxer
- 15,568
- 15
- 58
- 76
0
votes
0 answers
How to remove error in providing input to external process in Groovy
I am trying to give user name and password to an external process in groovy. But I am having some trouble in that as its failing with error.
String username=params.get("u")
String password=params.get("x")
command1="external_process…

Prateek
- 342
- 1
- 3
- 15
0
votes
1 answer
C# Synchronous Commands When Running External Programs
I'm given the task to transcode a bunch of GoToMeeting Video files each evening. Once the video has been transcoded, it will be uploaded to a website. However, before I jump too far into the project, I wanted to figure out if this is even…

kobaltz
- 6,980
- 1
- 35
- 52
0
votes
3 answers
java, execute exe from WAR in java code
In my war, I have file exe in WEB-INF\classes\
How can I execute this file in Java code (How can I specify path to this file) ?
command = " ? ";
Process x = p.exec(command);

user2519456
- 21
- 1
- 5
0
votes
1 answer
How to get process (external program) time, cpu usage for process run from java application?
I know how to run an external program in java:
public class Test {
public static void main(String[] args) throws Exception {
Process p = Runtime.getRuntime().exec(
"\"c:/my-simple-app.exe\"");
p.waitFor();
}
}
But how can I get…

mazix
- 2,540
- 8
- 39
- 56
0
votes
2 answers
.NET application cannot run external process when previously started by a Windows Service
I have a C# WInForms client with elevated user rights (=Run As Administrator) and a Windows Service that restarts that client automatically if the user accidently exits the client.
If the client is started by the User, everything works fine.
If the…

John
- 3,591
- 8
- 44
- 72