Questions tagged [external-process]

167 questions
0
votes
1 answer

running external process from scala using sbt ! operator under Windows

I have the following two lines in my scala program val success:Int = ("d:\\program.bat" !) println("started "+success) program.bat looks like this @echo off start "" "d:\notepad.exe" echo DONE the program actually starts tomcat server, but it is…
misiek
  • 121
  • 7
0
votes
2 answers

Can you compile a C++ file from another program to produce assembler output?

Is there a way to compile a C++ file from C#, assuming the compiler (G++ or VC++) is installed on the computer?
intrigued_66
  • 16,082
  • 51
  • 118
  • 189
0
votes
1 answer

How to reliably read and write to a running external process from Java?

I would like to be able to spawn an external process from Java, and periodically write to its input and read the response as if it were the console. Much of the time, however, when I read the process' output, nothing is available. Is there a good…
jlb
  • 679
  • 1
  • 10
  • 21
0
votes
3 answers

Unable to execute a program from a service

I have a Windows service which I want to periodically execute an external program. I'm currently doing this the usual way Process program = Process.Start(@"C:\mpewatch\db_parameters\DBParameters.exe"); This doesn't seem to be working. I'm…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
0
votes
1 answer

MyRuntime.exec() saying file not found

This is JAVA programming language question This is the code im trying to execute : MyRuntime = Runtime.getRuntime(); File temp = new File("C:\\Command Line Apps\\cURL\\"); for(String filenames : temp.list()) System.out.println(filenames); curl =…
anony Mus
  • 1
  • 1
0
votes
1 answer

Launch External Process then Inject dll to it

I have a game, the client of a game online, that game is wrote by another man, not me. I want to inject a dll to this game for anti-hack from player! I renamed the game.exe to Loader.dat I want to write a game.exe (fake) call loader.dat to run then…
0
votes
3 answers

Run a R script from a java jar

I have a java program that calls a R script. Here is the command: String filename = "hierarchicalClusteringScript.R"; String[] cmd=new String[]{this.conn.getRPath(),"CMD","BATCH", "--args LD_matrix='"+LD_matrix+"' " + …
Rossella
  • 179
  • 10
0
votes
2 answers

How to handle different stdout behaviour in external program?

Hi I am trying to execute external program from Java program and read the stdout message in real time, without waiting for the program to exit. However, i found that there are different stdout behaviour in different .exe program, and I don't know…
userpal
  • 1,483
  • 2
  • 22
  • 38
0
votes
1 answer

How do I initialize a model table w/RSpec so external processes can see the contents of the table?

I'm writing a Rails system that ingests data from external sources by spawning multiple processes to fetch the data and updating a single db table. I want to write RSpec tests that spawn multiple processes that emulate the fetch/write process to…
fearless_fool
  • 33,645
  • 23
  • 135
  • 217
0
votes
0 answers

Communicate with an already running external program from java

I'm trying to make a Unicode based virtual keyboard using java to write on an already running external program. i.e. I don't want to start the program. It should be already running. My java code will be running on the background, generating output…
0
votes
1 answer

Nppexec Howto pass selected link from npp editor to external browser

is it possible to pass selected text to browser (chrome) from notepad ++? howto pass not path to TEMP_FILE but content? //—need a correction— set ChromeRun = C:\Documents and Settings\My\Local Settings\Application…
Yurij73
  • 5,281
  • 3
  • 15
  • 14
0
votes
1 answer

PHP calls to external programs all fail with exit code 127

echo system("/usr/bin/whoami", $ret); echo $ret; PHP 4.3.9 on Apache 2.0.52, CentOS 4.5. Safe mode is off, I can run programs as the apache user account from the command line, but all programs run from PHP fail with exit code 127.
Zak
  • 1,157
  • 8
  • 15
0
votes
5 answers

Start a process in low Priority. Is it possible without try-catch?

Not to long ago i asked about an error msg that occurred when when app.PriorityClass = ? was before app.start. Apparently the solution which i didnt like was to write it after start. It worked without much problem until today. I get a "Cannot…
user34537
-1
votes
1 answer

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.println("error execute " + e); } The following…
-1
votes
2 answers

Oracle Triggers Query

Lets consider a Table STUD and a ROW-Level TRIGGER is implemented over INSERT query.. My scenario goes like this, whenever a row is inserted, a trigger is fired and it should access some script file which is placed in the hard disk, and ultimately…
AGeek
  • 5,165
  • 16
  • 56
  • 72
1 2 3
11
12