Questions tagged [external-process]

168 questions
4
votes
3 answers

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…
Maciek
  • 3,192
  • 6
  • 25
  • 35
3
votes
1 answer

Export current e-mail from Thunderbird into external process

I would like to create an extension which adds a toolbar button in Thunderbird. When pressing the button, an external application is launched and the text of the current mail message is exported to that application. Do you know about an extension…
izidor
  • 3,739
  • 4
  • 30
  • 42
3
votes
0 answers

C# How to get thread info from external process? Like name of the module which created the thread?

Basically what i'm trying to do is something like this: Pseudo code: if(ThreadMomModule.Name == "Skype.dll") { Thread[] aa = MomModule.Threads; foreach(Thread at in aa){ Suspend(aa);} }
Rav
  • 31
  • 2
3
votes
9 answers

open website without Process.start

How to open a website URL in browser without of Process.start(...) : System.Diagnostics.Process.Start(@"http://www.google.com"); I can not use Process.Start() in Windows Service , I do not no know why.
Ata
  • 10,914
  • 19
  • 53
  • 94
3
votes
1 answer

C - Calling functions from external process without exported functions

I am trying to figure out how I can call a function without having it being exported. Okay so I have an exe file with "add" defined in it, This exe is a win32 console application and loads a DLL. The DLL also aims to use the add function from the…
Tr41n
  • 93
  • 1
  • 7
3
votes
1 answer

Embed external application inside Java application (or fake it)

I have a java application that will run on Windows 7 (using Swing, App #1) that runs as full screen (but not in exclusive mode). I have another application (App #2) that displays a GUI to configure an external device over a serial port that I do…
Austyn Mahoney
  • 11,078
  • 7
  • 59
  • 85
3
votes
3 answers

Start and Stop external process from python

Is there a way to start and stop a process from python? I'm talking about a continues process that I stop with ctrl+z when normally running. I want to start the process, wait for some time and then kill it. I'm using linux. this question is not like…
Javi
  • 861
  • 1
  • 14
  • 40
3
votes
2 answers

How can I read stderr when a command execution fails in Perl?

I am executing a diff command in perl. my @lines = `/usr/local/bin/diff -udr \"$expected_file\" \"$gen_file\"`; if ($? != 0) { print ERRFILE "Diff between $expected_file and $gen_file failed\n"; return $diff_err; } Here the diff might have…
Liju Mathew
  • 809
  • 1
  • 17
  • 29
3
votes
1 answer

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. …
Jesse Aldridge
  • 7,134
  • 7
  • 41
  • 72
3
votes
2 answers

How to check if command is exists?

I need to detect if app is present in system. I use for it std.process the next code is trow exception if executable command do not exists: try { auto ls = execute(["fooapp"]); if (ls.status == 0) writeln("fooapp is Exists!\n"); } catch…
Suliman
  • 1,301
  • 2
  • 11
  • 19
3
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
  • 482
  • 1
  • 5
  • 16
3
votes
2 answers

PHP running external program, Apache hangs

Basically my situation is as follows. Upload file Run external process on file (which generates another file) When external process is down, process the generated file. Currently in PHP I run the program as follows: $cmd = 'cd the_directory/;…
Kenny Cason
  • 11,382
  • 9
  • 42
  • 71
2
votes
0 answers

How should you open an external editor and monitor for changes to the file/application?

Some applications (especially file transfer apps) allow you to spawn an external text editor in order to edit a remote file. They do this by downloading the file to a temporary directory, opening the external editor with this file, and then…
Benjie
  • 7,063
  • 4
  • 24
  • 43
2
votes
4 answers

To Thread or not to Thread when starting an external application in C#

I'm creating a win service that monitors ftp logs, when a file has been uploaded I want to start an external application, like a powershell script, to do stuff with the file. my Question is do i want to spin this off into another thread when i do…
Bob The Janitor
  • 19,164
  • 9
  • 45
  • 71
2
votes
3 answers

Launching External Programs with Java?

Problem: Automatically close a program after a certain amount of minutes. Solution: Here is what I came up with to solve my problem (works with Rhythmbox on Ubuntu): package rhythmBox; import java.awt.Container; import java.awt.FlowLayout; import…
Mr_CryptoPrime
  • 588
  • 2
  • 10
  • 24
1 2
3
11 12