Questions tagged [external-process]

167 questions
1
vote
1 answer

Force external process to be killed after time period

I have a command line executable that is run from a C# class library. In some very rare situations the executable will hang because of the command line data passed to it. Unfortunetely this causes the application calling the c# DLL to hang whilst it…
Alex
  • 3,099
  • 6
  • 41
  • 56
1
vote
1 answer

run powershell script with C# System.Diagnostics.Process , powershell script sees no arguments

I decided to use System.Diagnostics.Process to run a powershell script just because it seemed simple,I didn't care about the result output, and I wanted the user to be able to see what was running Process process = new…
Roman A. Taycher
  • 18,619
  • 19
  • 86
  • 141
1
vote
2 answers

How to print log messages from external modules to the main Python module's terminal window?

I am writing a Python command line program. There is a main Python script file, acting as the entry point. When user run this script, it will execute a few external Python script files. The external Python script files may also execute other…
userpal
  • 1,483
  • 2
  • 22
  • 38
1
vote
4 answers

How to get memory usage of an external program - python

I am trying to get the memory usage of an external program within my python script. I have tried using the script http://code.activestate.com/recipes/286222/ as follows: m0 = memory() subprocess.call('My program') m1 = memory(m0) print m1 But this…
user1644254
  • 13
  • 1
  • 3
1
vote
3 answers

Create a WPF "control" that is run in an external process

I have a WPF app which contains a number of child controls. One of these controls hosts a third party library which underneath the covers runs some native code which throws access violations and crashes the application. Unfortunately removing the…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
1
vote
2 answers

Python: How to execute external program with parameters from another file?

I am trying to write a python script to execute a command line program with parameters imported from another file. The command line interface for the program works as follows: ./executable.x parameter(a) parameter(b) parameter(c) ... My code…
user1431534
  • 13
  • 1
  • 1
  • 5
1
vote
1 answer

exec/system() - script being called works until called from PHP

I have a bash script: run.sh #!/bin/sh cd /var/www/project/bin/ CMD="./executable ; $CMD When I run this program from the terminal. (i.e. ./run.sh, it works fine) However when I call it from PHP: system("full_path_to_sh_file",…
Kenny Cason
  • 12,109
  • 11
  • 47
  • 72
1
vote
1 answer

How to ask javascript to wait an end of executing external application?

Colls, hello. My javascript run an external .bat file: var objShell = new ActiveXObject("Shell.Application"); objShell.ShellExecute("start.bat", "Main.bat c:\pr ext.dat ", "C:\\PR\\", "open", "1"); Start.bat file works five minutes. And…
May12
  • 2,420
  • 12
  • 63
  • 99
0
votes
1 answer

Running another program using Python

I have a program that processes files and returns another file as output. When I am running it in cmd I first set the path: "cd c:\program" and then set it to process the file located in the program folder: "program test.txt". I would like a python…
root
  • 76,608
  • 25
  • 108
  • 120
0
votes
1 answer

How to automatically check for content and save to a file?

Hello, I am calling few contents from my blog to my website, however when user goes to my website, every-time he use to come to my website the contents of the blogs are fetched and then get displayed. Which slow down the website performance. Now i…
Django Anonymous
  • 2,987
  • 16
  • 58
  • 106
0
votes
2 answers

Execute a batch of processes: asynchronous or continuous?

The user now launched the "Convert all" function, it should run a seperate process for each of them items. What's the recommeded way, convert them one after the other one by one, or launch a seperate conversion thread for each of the items letting…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
1 answer

WPF Application crashes on WIndows 7 when command executable.Start() is run

I've got a tiny Portal I´m writing, and this portal is supposed to launch installers on button click. I´m developing on VS2010 on a WinXP SP3 station, and on this machine, even fter compilation and publishing, everything works as expected. However,…
0
votes
1 answer

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 run the executable in node js, the server is working, I…
0
votes
4 answers

external program from java doesn't terminate

When I try to execute an external program from java I use this code below : Process p; rn = Runtime.getRuntime(); String[] unzip = new String[2]; unzip[0]="unzip"; unzip[1]=archive ; public void dezip() throws IOException{ p =…
lemoos
  • 167
  • 1
  • 4
  • 17
0
votes
2 answers

Debian - invoke external script from exim on receipt of emails

I am looking fopointers on the best approach to process incoming emails to a certain vhost and to call an external script with the email data as parameters - basically to allow email to be sent to a certain "private" email address at a host which…
RichieHH
  • 2,116
  • 4
  • 28
  • 30