process

How do I get a PHP script to send and receive data from an already running process?

I'm trying to create a simple AJAX to Telnet client for the web. I may be re-inventing the wheel by doing this, but it is a learning project for myself. At the moment I haven't written anything, I'm just trying to get the idea wrapped around my brain. It doesn't necessarily have to be PHP. If I have a telnet client that supports multipl...

Thread and Process

What is the best definition of a thread and what is a process? If I call a function, how do I know that a thread is calling it or a process (or am I not understanding it??!). This is in a multi-core system (quadcore). ...

Testing Process.Start?

I am creating an application that will manage multiple instances of an external utility, supplying each with data and fetching results. But as I am writing unit tests for the class I came upon a problem. How do test that the target method actually starts a process (set via a property) when called? I have tried: Make the class execut...

Killing a defunct process on UNIX system

I have a defunct process on my system: abc 22093 19508 0 23:29 pts/4 00:00:00 grep ProcA abc 31756 1 0 Dec08 ? 00:00:00 [ProcA_my_collect] <defunct> How can I kill the above process, without a reboot of the machine? I have tried with kill -9 31756 sudo kill -9 31756 ...

How can I create a new process with another User Account on Windows?

Is it possible to create a new process on windows with a different user account? I know there are a context menu "Run as" but I want do it from Java. I have the username and the password. ...

Using Process.Start() to start a process as a different user from within a Windows Service.

I'd like to periodically run an arbitrary .NET exe under a specified user account from a Windows Service. So far I've got my windows service running with logic to decide what the target process is, and when to run it. The target process is started in the following manner: The Windows Service is started using "administrator" credentia...

How do you organize your Documentation?

I need a documentation system for a team. This team, man, we got a big ol' web service, and we got new products in the pipeline. And currently, there's only a wiki hosted on a trac system. And believe me when I say the organization smells, well, far south of cheese. Most of the time you want to find something as a developer, you probably...

Should we be tracking defects in things other than code?

At various times in my career I have encouraged staff I worked with and/or managed to track defects in artifacts of the development process other than source code (i.e. requirements, tests, design). Each time the request has been met with astonishment, confusion and resistance. It seems so obvious to me that I'm always a little shocked w...

.NET Processing spawning issues

I have an executable that runs instantly from a command prompt, but does not appear to ever return when spawned using System.Diagnostics.Process: Basicly, I'm writing a .NET library wrapper around the Accurev CLI interface, so each method call spawns the CLI process to execute a command. This works great for all but one command: acc...

How to delete a file used by other process

Here's the deal. My WinApp is running, right? in let's say process 'A'.It creates a file and keeps the handle (keeps the file open for writing, this is a must). Then it starts other msbuild process, let's call it 'B'. This process is started with the System.Diagnostic.Process class. At some point, my WinApp (A) needs to delete the pre...

how to push new developments to production environment?

Once our web application is being used on production environment we have a really hard time updating it with enhancements or bug fixes. The main reason is an initial flaw in the design of our CMS system. We have to usually spent hours to update each prod environment and many times with errors and long hours of debugging. It looks like...

How to get parent process in .NET in managed way

I was looking a lot for method to get parent process in .NET, but found only P/Invoke way. ...

Is it safe to copy over a dll that is used by a running process on Windows XP?

This is on Windows XP. I have a running process (that I'd like to stay running). If I copy over a dll that it uses (as in, replace it with a newer version), will this cause problems for the running process, or is the code already loaded such that it won't matter? ...

Check if a file is open from another process

How do I check if a file is already used by another process from Powerscript ? ...

Windows process memory viewer

Hi I am looking for a tool which let me explore process' memory allocation on Windows e.g. Starting address of the process Allocated memory segments, there addresses Stack and Heap addresses and current stack pointer Objects on Heap and there addresses Referenced libraries I have used Process Explorer but it talks about total usage not s...

Scrum: too much or not enough?

My company has recently started using Scrum; we've done 2 sprints. We're still learning, but we've definitely exposed and fixed some problems in our development process already. So in general I think it has been good for us. In reading many of the internet musings about Scrum from evangelists, cynics and everyone in between, three commo...

Using API/Function calls or going for the Cron Job approach - An inquiry into dealing with transactions - How would you handle it?

Hey Everyone, I wanted to run something by you guys. I am starting a new project which is roughly the following: Important information: I am using PHP and MySQL Every minute I get a list of to-do transactions from an API from different users. Example: user1 send $1 to user2 userx send $2 to usera userw send $0.50 to user2 etc.. ...

Track used applications

I've been using Wakoopa recently, and I find it quite amusing. I had no idea ( well I had an idea but never got real data about it ) on how much time I spend in SO until this: So my programming question is: How can I programmatically track the applications being used? My initial though was to use something like "tasklist" co...

Invoking a Linux process from Windows and receiving stdout.

I have a legacy application in our company built on... ahem; Classic VB (VB 6). It has got a optimizer(CPLEX MIP Solver) component running on a Linux server and is developed in Java. If we want to provide a Windows UI to invoke the optimizer instance on a remote linux server; how should I implement it? The optimizer will pump out messa...

In Python, how I do use subprocess instead of os.system?

I have a Python script that calls an executable program with various arguments (in this example, it is 'sqlpubwiz.exe' which is the "Microsoft SQL Server Database Publishing Wizard"): import os sqlpubwiz = r'"C:\Program Files\Microsoft SQL Server\90\Tools\Publishing\sqlpubwiz.exe"' server = 'myLocalServer' database = 'myLocalDatabase' ...