process

Linux: Prevent a background process from being stopped after closing SSH client

I'm working on a linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file. To my surprise, that doesn't work. As soon as I close the Putty window, the process is s...

Infinite loop in FreeBSD

I have a script that constantly segfaults - the problem that I can't solve as segfault is in python libxml bindings - didn't write those. Ok, so in Linux I used to run an inf.loop so that when script dies - it restarts, like so: #!/bin/bash while [ 1 ] do nice -n 19 python server.py sleep 1 done Well, I can't seem to find /bin/bash in...

How to spawn a process and capture its STDOUT in .NET?

I need to spawn a child process that is a console application, and capture its output. I wrote up the following code for a method: string retMessage = String.Empty; ProcessStartInfo startInfo = new ProcessStartInfo(); Process p = new Process(); startInfo.CreateNoWindow = true; startInfo.Redirect...

How do I encourage code sharing and limit the bug tracking overhead while maintaining flexibility in my releases?

How are you tracking changes, testing effort for bugs that impact multiple artifacts released separately? Code sharing is good because it reduces the total number of paths through the code which means more impact for fewer changes and less bugs (or more bugs addressed with fewer changes). For example, we may build a search tool and an ...

Spawn a process in Java that survives a JVM shutdown

I need to spawn a process in Java (under Linux exclusively) that will continue to run after the JVM has exited. How can I do this? Basically the Java app should spawn an updater which stops the Java app, updates files and then starts it again. I'm interested in a hack & slash method to just get it working as well as a better design p...

Stuck on GenerateConsoleCtrlEvent in C# with console apps

I'm having the hardest time trying to get this to work, hoping one of you has done this before. I have a C# console app that is running a child process which inherits its console. I want a ctrl-c caught by the outer app to be passed along to the inner app so that it can have a chance to shut down nicely. I have some very simple code. I...

ms c++ get pid of current process

Part of my application is in C++ under windows. I need the process id for the current process. Any thoughts? ...

launch app, capture stdout and stderr in c++

How do I launch an app and capture the output via stdout and maybe stderr? I am writing an automated build system and I need to capture the output to analyze. I'd like to update the svn repo and grab the revision number so I can move the files in autobuild/revNumber/ if successful. I also would like to build using make and upload the co...

Run .net code in a separate process

In an impersonation scenario related to Sharepoint I need to execute some code in a separate process (the process will run in the context of a certain user). I do not want to launch a separate application, basically I want to do a "run as" on just a method. ...

Redirect stout from child process with .net

I'm using the following code System::Diagnostics::Process^ p = gcnew System::Diagnostics::Process(); p->StartInfo->FileName = "tnccmd.exe"; p->StartInfo->UseShellExecute = false; p->StartInfo->RedirectStandardInput = true; p->StartInfo->RedirectStandardOutput = true; p->Start(); System::IO::StreamWriter^ tnc_stdin = p->StandardInput; ...

What are your foundation that you use to start a project?

We want to standardize the way we are starting projects. Most of the company is running off Agile but we want to have common bases. An exemple would be to customize the "Process Template" inside TFS and add our own work items with our own workflow for specific task/request coming from the client. We would also love a better way to gat...

How to catch exceptions from processes in C#

I all... I have an acceptance runner program here that looks something like this: public Result Run(CommandParser parser) { var result = new Result(); var watch = new Stopwatch(); watch.Start(); try { _testConsole.Start(); parser.ForEachInput(input => { _testConsole.StandardInpu...

Which VSTS Process Template are you using?

There is the classic MSF Agile and MSF CMMI that are coming by default with VSTS. However, I saw that there is Scrum Light on CodePlex and a Scrum Process by Conchango. How good are those? Are you using any of those? What are your customization that you do? Are they taken as is? ...

How can I check from Ruby whether a process with a certain pid is running?

The question title says it all. If there is more than one way, please list them. :) I only know of one, but I'm wondering if there is a cleaner, in-Ruby way. ...

Do you have any opinions of SEI's Team Software Process?

Someone within my organization has started pushing for us to pilot the CMU SEI's TSP process (see website here). I have an instinctual aversion to any attempts to cure software development illnesses with alphabet soup, but I would like to know if anyone has experience with this process and can provide tangible facts. ...

How do I get the application exit code from a Windows command line?

I am running a program and want to see what its return code is (since it returns different codes based on different errors). I know in Bash I can do this by running echo $? What do I do when using cmd.exe on Windows? ...

Creating a GUI application that wraps command-line programs on Linux and Windows

Hi, I'm writing a GUI application that will let users interact with command-line programs. The programs are crystallography programs, in this case. They take a long time to run. There's a certain common workflow using the command-line programs. The output from one program is typically processed and then is used by other programs. T...

Rational Unified Process Alternative for Documentation and Templates?

Is there any free or open alternative to RUP? ...

Knowing which process produced a sound

My computer often produces a "ding" sound, and I can't associate it with anything. Is it possible to programmatically determine the source of the beeps? For example can I hook the sound driver? If so, can you point out some examples or references? ...

What kind of programming method do you prefer? Success vs. Freedom

Would you prefer to have total complete freedom over all of your development techniques, or would you rather follow a safer more boring approach that has a significantly better chance of working in the end? Hacker vs Engineer? Painter vs Electrician? ...