external-process

Execute and monitor multiple instances of external program in Python

Main program is like this: PREPARE PARAMETERS FOR CHILD PROCESSES subprocess.Popen('python child.py param=example1'.split(' ')) subprocess.Popen('python child.py param=example2'.split(' ')) ... How to make main program to monitor each instances of child process it launched and restart it with its corresponding parameters if it's not r...

Ensuring a file is flushed when file created in external process (Win32)

Hi all, Windows Win32 C++ question about flushing file activity to disk. I have an external application (ran using CreateProcess) which does some file creation. i.e., when it returns it will have created a file with some content. How can I ensure that the file the process created was really flushed to disk, before I proceed? By this ...

Reading in MIPS external file so another file can use it?

Hey all, I'm working on this final thing for my MIPS project and it's deceptively easy. I need to get a procedure (called feed) and let its main driver program use it by reading it in. I know that I'm supposed to use the call code 14 and .globl sym (I think) in order to feed it into the file and have it read it. I just need a basic tut...

Closing a modal popup from vb.net?

Hi, I want to wait for and close a modal form (a popup) from another application, as soon as it appears. I want to do this from VB.NET, but suggestions in C# should be easily translateable. I can hard-code the modal popup's caption in my app, since it's long and unique. What I want to do is simulate either the user clicking on the close...

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 directory names inside the directory from which I'm running this Perl script. In short,...

PHP - Execute an external command, but by passing an array, one for programme name, then arg1, then arg2, etc...

I have a PHP script that needs to execute programmes that will work on files that have spaces in the names. Most PHP functions for executing external commands (e.g. exec()) take an 1 string argument for the command line to execute. However then you have to do things like escapeshellarg() to make your input safe. Is there some way to exe...

eventmachine and external scripts via backticks

I have a small HTTP server script I've written using eventmachine which needs to call external scripts/commands and does so via backticks (``). When serving up requests which don't run backticked code, everything is fine, however, as soon as my EM code executes any backticked external script, it stops serving requests and stops executing...

FluorineFX Aperture in Adobe AIR: How to get program standard output?

I have next command to run from my AIR application: chp.exe cmd /d /c ""process.bat" "params.tmp" > "log.tmp" 2>&1 && echo 0 > status.tmp" || echo 1 > "status.tmp"" It creates background invisible process and logs output and exit status of the process.bat to the log.tmp and status.tmp. chp.exe is a "Create Hidden Process" program (...

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 <version> <folder-name> <output-file> my $version = $ARGV[0]; my $foldername = $ARGV[1...

Ensure the termination of a Application launched by Runtime.exec when tomcat is killed

Hi, I launch several external process via a call to Runtime.getRuntime.exec("java myApp"); I monitor the correct launching and execution of the application with some java.concurent.Future. I can tell if the app is launched, in error, stopped. I can stop it. But, when I kill the main application (the one who launches the others) the...

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 output. Input File : '/dev/dsp' (ossdsp) Channels : 2 Sample Rate : 48000 Pr...

Porting/Writing WPF application which launches external applications to Silverlight 4 out of browser

WPF launches certain method which calls external exe and waits , and then accesses a file which was an output of external exe. Assuming I would build this application with a consideration of porting to Silverlight 4 later what should I do ? ...

Need to get back form controls' information externally

Are there any tutorials or guides out there that anyone knows of that will show me how to read forms from an external program and get back information about the controls on the form? Currently, I can get the handle to the form, and I can get the class name, but I need to get more information such as a persistent name and contained data....

How to trigger a Symbian C++ application within a J2ME application for Nokia phones using J2ME API?

Hi all, Anyone knows how to trigger a Symbian C++ application using any J2ME API call? I have a J2ME application that needs a customized photo taking application in Symbian C++. The reason for separating into two applications is because J2ME has a limit in heap size and the J2ME needs to know the path of photo after taking it. Thanks a...

SSIS Handling Extenal Issues

I have an SSIS package that works fine. The package runs every night and takes about 4 hours to complete. I have am a newb to SSIS, so I want to see what my options are. I am not finding anything on the web about these two issues, so any advice is greatly appreciated. What to do when I have an external issue such as a power failure/acc...

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 should print the result. So, is this thing is possible? and if yes, then this thing should ...

Dealing with external processes

I've been working on a gui app that needs to manage external processes. Working with external processes leads to a lot of issues that can make a programmer's life difficult. I feel like maintenence on this app is taking an unacceptably long time. I've been trying to list the things that make working with external processes difficult s...

Getting Information from a Shell'ed Process into the VBA Program

So, let's say that I have a VBA application inside of whatever Office Application. I have created a command-line VB.net program to do all of the fun web-services stuff. Okay, the VBA application calls Shell() to run the command line program. Now, what is the best way to get information (a tracking number for a package) from the VB.net p...

Launching External Executable in Windows Azure

Hi, My current ASP.NET site requires to launch FFMPEG.EXE to convert uploaded videos. With shared web hosting server, can't be done but via a Virtual Private Server (VPS) or a dedicated server. I've been reading some info about Windows Azure but haven't found any info regarding: 1. Be able to launch external executable 2. Be able to...

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 complete trashing of my beautiful menu. So, I get sent back to the command line. The menu i...