process

how to kill 2 processes in linux

I have two programs running simultaneously ( in linux ) , with one running at the background. When i press ctrl+c , the prompt returns , but the processes seem to continue.. How to kill them both ? ...

How are tabs treated differently in different systems?

To maintain portability, tab characters must not be used in indentation, since different systems treat tabs differently. Anyone knows? ...

debugging process hang in legacy 3rd party application

We have a legacy third-party telephony system built on something called "CT ADE" that periodically hangs for a few seconds (5 to 30) then resumes. During these hangs, users experience frustrating pauses in the phone menu. This has been going on for several weeks at least. This code was not written by me, so my knowledge of it is ver...

How to send keys instead of characters to a process?

System.Diagnostics.Process exposes a StreamWriter named StandardInput, which accepts only characters as far as I know. But I need to send keystrokes as well, and some keystrokes don't map well to characters. What should I do? ...

cause the main process wait until another process is finished.

I have a synchronization problem in java. I want my main thread to wait until process "p1" is finished. I have used "waitfor" method. it has not worked for me. Process p1 = runtime.exec("cmd /c start /MIN " + path + "aBatchFile.bat" ); p1.waitFor(); Could anybody help me please? Thank you so much. ...

How to enumerate all windows within a process?

I need to capture particular windows of 3rd party process. I can find main window handle as Process.MainWindowHandle, but what I can use to list other windows? I am using C# / .NET ...

How can my ASP.NET webapp spawn a program in a new thread within the same Process?

I have an ASP.NET application which needs to run a command-line tool. I want to start it under the same process as the application pool so it is subject to the IIS CPU throttling, etc. How can this be done? ...

What is the exactly Runtime Host?

What is the exactly definition of Runtime Host? From MSDN: The common language runtime has been designed to support a variety of different types of applications, from Web server applications to applications with a traditional rich Windows user interface. Each type of application requires a runtime host to start it. The runtime hos...

Start external process several times simultaneously

Hello, I need to start an external process (which is around 300MB large on its own) several times using System.Diagnostics.Process. The only problem is: once the first instance starts, it generates temporary data in its base folder (where the application is located), so I can't just start another instance - it would corrupt the data of...

What's your bug management process?

Hi All, What is the lifecycle / process of a bug? Speaking generally, Are there any tips, suggestion process wise that bug fixing should go though? ...

Performance Counter Category Names? (C#)

I'm trying to program in a performance counter into my C# application that launches another process and checks the processor usage of that launched process. As I understand it, the performance counter class requires me to assign a category name , a counter name, and a process name. I can get the process name easily enough, but is there a...

Correct way (in .NET) to switch the focus to another application.

This is what I have so far: Dim bProcess = Process.GetProcessesByName("By").FirstOrDefault If bProcess IsNot Nothing Then SwitchToThisWindow(bProcess.MainWindowHandle, True) Else Process.Start("C:\Program Files\B\B.exe") End If It has two problems. Some people have told me that SwitchToThisWindow is d...

Start a process TopMost.

I have a C# .Net 2.0 app which implements a FullscreenMode like this: targetForm.WindowState = FormWindowState.Maximized; targetForm.FormBorderStyle = FormBorderStyle.None; targetForm.TopMost = true; WinApi.SetWinFullScreen(targetForm.Handle); // let me know if you need the code of this methode If the user is in FullscreenMode and tri...

Bulk Printing from application in .net?

Hi, I'm working on a project for my companies intranet which requires that multiple attached documents to the main DTO of the project need to be autoprinted in the background. The problem is it's a web project and I want the printing to be done under the surface. Now because it's on an intranet only certain people can use it and I can s...

C#, Process.Start hide?

public static void Main(string[] args){ SearchGoogle("Test"); Console.ReadKey(true); } static void SearchGoogle(string t){ Process.Start("http://google.com/search?q=" + t); } Is there any way to hide the browser, so it won't pop up?? ...

What is process and thread?

Yes, I have read many materials related to operating system. And I am still reading. But it seems all of them are describing the process and thread in a "abstract" way, which makes a lot of high level elabration on their behavior and logic orgnization. I am wondering what are they physically? In my opinion, they are just some in-memory "...

How to run a process in a multiuser environment

I running a process for doing some task. Suppose 10 person are requesting to run that process then what will happen? Whether it will maintain a queue or ? I am writing the program in C#. Any answers will be appreciated :) ...

Need advice or pointers on Release Management Strategies

I look after an internal web based (Java, JSP, Mediasurface, etc.) system that is in constant use (24/5). Users raise tickets for enhancements, bug fixes and other business changes. These issues are signed off individually and assigned to one of three or four developers. Once the issue is complete it is built and the code only commit...

How do I find the window handle for a running process?

I am trying to get the handle of a window from a process. Now, that process shows a splash screen, so, if i try ProcessInstance.MainWindowHandle all I get is the handle of that processes main window, that is the splash screen. How can I find the window I want? Maybe if I could get a list of windows that process has I could pick the one ...

how to exit a child process - _exit() vs. exit

Consider this code snippet: pid_t cpid = fork(); if (cpid == -1) { perror("fork"); exit(EXIT_FAILURE); } if (cpid == 0) { // in child execvp(argv[1], argv + 1); perror("execvp); _exit(EXIT_FAILURE); } // in parent How shall I exit the child process if execvp returns? Shall I use exit() or _exit()? ...