Whats going on here? I thought SIGINT would be sent to the foreground process group.
(I think, maybe, that system() is running a shell which is creating a new process group for the child process? Can anyone confirm this?)
% perl
local $SIG{INT} = sub { print "caught signal\n"; };
system('sleep', '10');
Then hit ctrl+d then ctrl+c im...
Is there a method for tracking or measuring the cause of bugs which won't result in unintended consequences from development team members? We recently added the ability to assign the cause of a bug in our tracking system. Examples of causes include: bad code, missed code, incomplete requirements, missing requirements, incomplete testin...
I using C# .NET , vs 2008 , .net 3.5
For me, is difficult, but I need sample code in C# for this:
Check if a file is in use
If file is in use, the name of Process that use it
For example, in my issue.
I try delete file, and I get "The process cannot access the file 'XYZ' because it is being used by another process." Exception.
Fi...
I have an application that processes file transfers. In some instances, I need to launch some pre/post processing executables that do stuff with the files.
So the order of events (in brief) would be like this:
Worker thread is created
Worker realizes it needs to launch a pre-process executable before starting the transfer
Pre-process...
I'm writing a network app, where each Client has a Singleton ClientManager.
For testing, I would like to create several clients (each in their own VM / process) without starting the program by hand n-times.
The following two questions on stackoverflow already describe how-to do that:
Is this really the best way to start a second JVM f...
I tried Sysinternals - Process Monitor, but there is no way to dynamically attach filters for child processes
...
I would like to be able to search for a folder by name within a user's files in C#. The reason for this is to enable a process which utilizes two applications that are otherwise not communicating with one another. (The process is essentially a file hand off, and the applications cannot communicate as one is a proprietary app). If this is...
when i do the following command into dos it will work fine
ffmpeg -f image2 -i frame%d.jpg -vcodec mpeg4 -b 800k video.avi
When I try to use the process class in c#, without the arguments, it loads ffmpeg in a console window then dissapears like usual. However, when I try to use the argument as I do above, formatted exactly the same.....
A while back, I asked a question on here about how to run an application as a thread in the memory space of another application, rather then a new process: http://stackoverflow.com/questions/3169234/executing-a-program-as-a-thread-and-not-as-a-process
As a follow up to that question, I think I have a theory on how I might do this to ach...
This "simple" issue seems to be fraught with side issues.
eg. Does the new process open multiple windows; Does it have a splash screen?
Is there a simple way? (I'm starting a new instance of Notepad++)
...
std::tstring tstrNotepad_exe = tstrProgramFiles + _T("\\Notepad++\\notepad++.exe");
SHELLEXECUTEINFO SEI={0};
sei.cbSize ...
Hi all,
I'm having problems with killing parent process that have 1 child - parent is waiting for child to exit and only after that kill handler is called. When the kill handler is not installed (pcntl_signal(SIGTERM, "kill_handler")) script terminates immediately.
I need that after submitting kill command to terminate parent process ...
I'd like to create an application that gets the ipv4 tcp table ( currently by using GetTcpTable() ), then gets a socket (searching for a particular IP address) and peeks data from that connection (it actually has to send data too).
So we have two processes on the same machine, one that has a connection to a server, and another one that ...
Im attempting to kill a process remotely by using pskill.
From the command line, pskill works great, but when trying the same command in C# Im getting an access denied error.
var startInfo = new ProcessStartInfo {
FileName = "pskill.exe",
Argume...
I would like to execute a program in .NET server side code.
So far I have this:
Process p = new Process();
p.StartInfo.FileName = "myProgram.exe";
p.StartInfo.Arguments = " < parameter list here > ";
p.Start();
p.Close();
This is a console program. What happens is that console is opened and closed repeatedly wi...
Hi everyone.
I'd like to (from code) launch a process with highly restricted privileges.
Can save files, but only in its own folder and limited to a quota.
Can use memory, within a quota.
CPU time (including any subprocesses it launches) is limited to a quota.
Can't talk with any other process except it's own and the interface to my c...
I'm trying to run a Jscript task from a C# console application.
The Jscipt file is not mine so I can't change it. The script moves some files and this is what is causing the issues.
When I run the script manually, i.e. form the shell it executes correctly. When I try and run the script from my console application the bulk of the proces...
I'm looking for a Python function which behaves just like the Windows command interpreter cmd.exe when it comes to waiting for newly launched processes to finish. Right now I'm using os.system() but this function always blocks, even when launching GUI applications (which, in case they were written in C/C++, have a WinMain function and w...
I am starting to work with Air2 NativeProcess and maybe you can give me a hand.
I want to create a project with parts in Java and Flex that communicate through NativeProcess. I already installed Air2 and set it up for Eclipse.
I wrot a small aplication in Flex with two text fields (textToSend and TextReceived) and a button (sendText w...
i wanna use process.getprocesses() but it doesn't seem to be in my diagnostics class, why?!!!
...
Many a time I get lost in the middle of a project, and the project gets delayed. I have four projects which are still not completed, and new projects are coming.
How should I approach a new project? Are there any books or websites that help understand what I need to do first?
Do we make a database or static design first, as the custome...