process

C# Start a new MailTo Process and HTML URL Encoding

I have created a new MailTo extension method for the Process class which just fills the Process with a new ProcessStartinfo which contains the required mailto arguments. I have created a method called FormatMailToArgument (Right at the end) which converts control characters to their Url Encoded equivelants and have tested this and it wor...

Return code when OS kills your process

Hello, I've wanted to test if with multiply processes I'm able to use more than 4GB of ram on 32bit O.S (mine: Ubuntu with 1GB ram). So I've written a small program that mallocs slightly less then 1GB, and do some action on that array, and ran 5 instances of this program vie forks. The thing is, that I suspect that O.S killed 4 of them...

WaitForExit for a process on a remote computer

Hi, I'm using WMI to start a process on a remote machine. The call to create the process returns immediately and I also get the id of the process on the remote machine. I would like to wait for the remote process to be completed. One option would be to poll whether a process on the remote machine with the given id still exists. Howev...

how to write java program get pid

how to write java program get pid? ...

C# Process class redirect output to video file

I wrote a little GUI wrapper which will execute openRTSP using the Process class. The issue I am having is redirecting the output to a mpeg4 video file. I verified the parameters I am passing are correct by running openRTSP on the command line. openRTSP.exe -some -parameters -for -video -4 rtsp://video.from.server > video.mp4 The "> vi...

Code Quality

I work for a software development company and we have around 100 people working on a product, 1/3 of these people are QA. Lately management wants to have a better way to rate individual programmers performance so the suggestion was to use bug reports as a measurement. The more bug reports on a developer the worse he is. This seems ill-ad...

Debugging a Process.Start()'ed application

I have a C# class library (which is an AutoCAD .net application) and a console application. Somewhere in the class library, it starts the console application using Process.Start() I have both of these projects with the same solution, I have set the class library as the startup project (to launch AutoCAD). I can debug the class library,...

How can I unblock from a Java started process?

When executing some command(let's say 'x') from cmd line, I get the following message: "....Press any key to continue . . .". So it waits for user input to unblock. But when I execute the same command ('x') from java: Process p = Runtime.getRuntime().exec(cmd, null, cmdDir); // here it blocks and cannot use outputstream to write somne...

What is this process in Sql Server Activity monitor?

There is a process that seems to be running all the time in SQL Server 2005 activity monitor. Double clicking on it produces the following query: CREATE TABLE #tmpDBCCinputbuffer ([EVENT TYPE] NVARCHAR(512), [PARAMETERS] INT, [EVENT Info] NVARCHAR(512)) INSERT INTO #tmpDBCCinputbuffer EXEC ('DBCC INPUTBUFFER(58)') SELECT [EVEN...

How can I terminate a process started from an Ant task if the script is cancelled?

I've created an Ant task to compile VB6 applications. After some preprocessing of the source files, I start VB6.exe with the appropriate parameters using Process p = Runtime.getRuntime().exec(...); p.waitFor(); But when I press Ctrl+C while Ant is running, the script and my task are terminated but the spawned process is still runnin...

Most efficient way to scan the windows process list?

So I'm currently working on a project that needs to time when certain processes are running. I'm trying to figure out the most efficient way to scan the process list, then check the process list executable names against the list of supported programs. Essentially the problem is two parts: 1) Most efficient way to get the process execut...

Using HSQL for .NET developement and related questions of process

My team uses a shared instance of Oracle for development using C#, NHibernate and ASP.NET, and we occasionally step on each others toes when making data or schema changes holding up everyone. On another project I'm using Java and HSQL in 100% in-memory mode and just have Hibernate launch a script to import enough data to test with. It...

How to use system calls like fork, wait and exit in C to solve my problem?

I have this problem to solve that I have no idea how to do it because there's only a few system calls we can use to solve it and I don't see how they are helpful for the situation. The Exercise: I have matrix with size [10][1000000] with integers and for each line I create a new process with fork(). The idea of each process is to go thr...

Why did hasExited throw 'System.ComponentModel.Win32Exception' ?

Hello, I have run the new process using ShellExecuteEx. The process is run properly. But if I try to check the hasExited property the process threw this exception. Why is it and what to do to check if the process alive? ShellExecuteEx(ref info); clientProcessId = NativeMethods.GetProcessId(info.hProcess); Process clientProce...

winapi: CreateProcess but hide the process' window?

I am using CreateProcess to create a cmd.exe process that is passed a parameter that it executes and quits, this makes command prompt flash up on the screen. I tried to avoid this by setting STARTUPINFO struct wShowWindow to SW_HIDE but this parameter seems to affect the calling window, not the window for the process that gets executed...

C#: Search a byte[] array in another process's memory.

Hello, How is it possible to search for a byte[] array in the memory of another process and then get the address at the place where the byte[] array is located? I want to write a byte array into the memory of another process(WriteProcessMemory()).One of the parameters of that call is uint Address.Well I want to get the address by searc...

Is there a way to retrieve process stats using Perl or Python?

Is there a way to generically retrieve process stats using Perl or Python? We could keep it Linux specific. There are a few problems: I won't know the PID ahead of time, but I can run the process in question from the script itself. For example, I'd have no problem doing: ./myscript.pl some/process/I/want/to/get/stats/for Basically, I'...

Capture standard output and still display it in the console window

I'm spawning a child process that runs in a visible console window (it's a batch file that runs MSBuild), and I'd like to have the output generated by the process displayed in the visible console window, as well as capture that output so I can process it in code. I've read several other questions and the MSDN documentation dealing with P...

hibernating a single process in Windows

Is there any library or software or any way of saving the state of a single process in Windows to a file, then restoring the running process to a running state with all the memory already loaded at a later time? I am aware that open handles will have to be re-opened, threads may have to started, etc, but can the heap and a single thread...

Is anybody using twitter (or yammer or laconica) in their software development team? Would like to know your experience.

Hello, I'd like to know about software development teams that use twitter (or yammer or laconica) in their process. What are you reporting? Do you have automated tweet e.g. from build or test machine? Thanks a lot for your answer. ...