20
голосов
9ответов
20441 просмотров

Misusing the term "Code Freeze"

I'm just curious if the community considers it acceptable to use the term "Code Freeze" for situations where we stop development except for testing and fixing bugs. Development Situation We're just finishing up our third and final sprint, which will be followed by a "Code freeze" and 2 weeks of...

3
голосов
1ответов
2422 просмотров

Why CreateProcessAsUser requires interactive window station on Vista/Windows 7?

I had to delve into this because the code that worked fine on Windows 2003/XP doesn't on Windows 7. Application launched by the use of CreateProcessAsUser fails with 0xc0000142 error code. The difference between my old code and one available from MSDN at Starting an Interactive Client Process in ...

8
голосов
2ответов
11845 просмотров

python: run a process with timeout and capture stdout, stderr and exit status

Possible Duplicate: subprocess with timeout What is the easiest way to do the following in Python: Run an external process Capture stdout in a string, stderr, and exit status Set a timeout. I would like something like this: import proc try: status, stdout, stderr = proc.run(["l...

0
голосов
3ответов
1524 просмотров

How to control the memory usage of processes spawned by a JVM

I am coding an application that creates JVMs and needs to control the memory usage of the processes spawned by the JVM.

4
голосов
2ответов
562 просмотров

Windows processes vs. applications

I can easily identify running processes by looping through the WMI Win32_Process elements. Is there a similar way to identify "applications" as in Task Manager? I assume that this is comparable to knowing whether the process has an open window. For example, when you exit Outlook, the OUTLOOK.E...

12
голосов
3ответов
19404 просмотров

How to determine if a process ID exists

I'm using C# .NET 2.0. I need to determine if a PID exists. I came up with the following code: private bool ProcessExists(int iProcessID) { foreach (Process p in Process.GetProcesses()) { if (p.Id == iProcessID) { return true; } } return fals...

0
голосов
2ответов
1320 просмотров

Get identity of currently logged-on user, not System account

I have a process which is running within the security context of the local system account. From C#, how can I start (using System.Diagnostics.Process.Start) a process that will run within the security context of the currently logged-on user, not the system account?

0
голосов
1ответов
186 просмотров

Process Lock Code Illustration Needed

I recently started this question in another thread (to which Reed Copsey graciously responded) but I don't feel I framed the question well. At the core of my question, I would like an illustration of how to gain access to data AS it is being get/set. I have Page.aspx.cs and, in the codebehind...

0
голосов
1ответов
140 просмотров

ajax process control

Is there any builtin control in ajax to show process indicator. Like when i press copy button in my page one popup shuold come and show a small process animation gif. is it possible in ajax using c#?

2
голосов
2ответов
2577 просмотров

capturing stderr and stdout from an already running process in solaris

I've got a process that is currently running (arserverd) that was started by user "remedy". I am able to log in as this user. I would like to capture stderr and stdout without restarting the process. Is this possible?

1
голосов
6ответов
249 просмотров

Anything wrong with using PHP as a server side language?

Is it wrong to use PHP as a server side language? For functions such as mail notifications / fraud checks (look for data, flag, then email type approach) / db cleanup / upload folder cleanup / cronjob type functions etc; I've ran into some projects lately where I've been successful with this app...

3
голосов
5ответов
2079 просмотров

Read output from svn into a string

Ok, so after my idea of SSHing to a server and using the svn command line client instead of remote desktop (not much of an idea tbh), me and my boss have decided it would be rather better if we could update each project from a single local web-page (this is only for our development server). Now, ...

2
голосов
2ответов
6643 просмотров

Qt: kill current process?

Is there a way in Qt to terminate a'la TerminateProcess the current process? QProcess::kill() seem to be only applicable to other, external processes.

1
голосов
3ответов
417 просмотров

Prevent a process from displaying a window during startup

I'm launching an application from a WPF app using the Process class that displays a splash screen at startup. Rather than show the user the splash screen, I'd like to hide the application for the first couple of seconds after starting it by keeping my window topmost and maximized. The problem i...

20
голосов
1ответов
24948 просмотров

Make a window topmost using a window handle

After launching an application using the Process class I'd like to make that window topmost. Currently, my app is the topmost window so when i launch the other app it doesn't display. One thing that came to mind is that I could set topmost = false for my application before launching the process...

25
голосов
7ответов
34317 просмотров

How to properly stop a multi-threaded .NET windows service?

I have a windows service written in C# that creates a truck load of threads and makes many network connections (WMI, SNMP, simple TCP, http). When attempting to stop the windows service using the Services MSC snap-in, the call to stop the service returns relatively quickly but the process continu...

6
голосов
3ответов
7088 просмотров

Can I handle the killing of my windows process through the Task Manager?

I have a windows C++ application (app.exe). When the app is closed, I need to perform some cleanup tasks specific to my application. What happens when this process (app.exe) is killed through the Task Manager. Assuming that the application is still responsive, can I somehow handle this situation ...

28
голосов
6ответов
19870 просмотров

Programmatically get parent pid of another process?

I tried google, but found getppid() which gets the parent pid of the current process. I need something like getppid(some_other_pid), is there such a thing? Basically takes the pid of some process and returns the parent process' pid.

5
голосов
2ответов
2643 просмотров

Get the current working directory of process with a pid programmatically on OS X

Is there a way to get the current working directory of a process using it's PID programmatically on OS X? Cocoa, Carbon, or AppleScript are all acceptable. It is not acceptable to send "pwd" to the current terminal window/tab (Do not want to affect the workspace). The linux command "pwdx" also...

298
голосов
12ответов
617854 просмотров

How to pause / sleep thread or process in Android?

I want to make a pause between two lines of code, Let me explain a bit: -> the user clicks a button (a card in fact) and I show it by changing the background of this button: thisbutton.setBackgroundResource(R.drawable.icon); -> after let's say 1 second, I need to go back to the previo...

0
голосов
1ответов
1109 просмотров

where do i find the MSF Agile 5.0 Process Template for TFS 2010?

Hi Can anyone tell me where to download the new MSF Agile 5.0 Process Template for TFS 2010? I recently decided to use TFS 2010 server..

0
голосов
1ответов
3513 просмотров

How to control SIGTSTP signal to child processes?

I am writing a shell. It forks background and foreground processes. I have a problem with the SIGTSTP signal. So after giving Ctrl ^ Z, SIGTSTP is generated since this signal is delivered to my shell and its child processes (all background and foreground processes that my shell has forked). But l...

0
голосов
1ответов
1070 просмотров

Calling setpgid on child process UNIX

I want a alternative function call for setpgid to call on a process that has done exec() call. setpgid returns error if it is called on a child which has already called exec. Does any alternative function exists?

1
голосов
1ответов
2495 просмотров

Does waitpid blocks on a stopped job?

I have a child process which has received a SIGTSTP signal. When I call waitpid(-1,NULL,0); the parent blocks, but in documentation, its written that waitpid returns with pid for stopped jobs. #include<unistd.h> #include<stdio.h> #include<signal.h> #include<sys/wait.h>...

0
голосов
2ответов
306 просмотров

Checking if multiple processes are running

I have a listbox that lists windows processes by their handle title, e.g. "Untitled - Notepad". What I would like to do is regularly check (using a timer?) if those processes are still open. I have stumbled across some code below, but that only takes one argument "string". I assume it would have ...

3
голосов
4ответов
10460 просмотров

Timeout when ssh command is executed from my Java program

I have a Java program which runs in Tomcat and which needs to execute several ssh and scp commands, as well as a few simple commands such as ls on the local machine. I am having trouble with my current approach in that I am getting a time out every time I execute an ssh command. I can run the s...

5
голосов
3ответов
15285 просмотров

Can we start a background process using exec() giving & as an argument?

If not, how can we start a background process in C?

2
голосов
2ответов
687 просмотров

Job id in UNIX doubt

I asked a related question 'Difference between process group id and job id in Unix', but I have a doubt that was not answered. In that answer, it was written that job id is built in data related to shell (kernel has nothing to do with it), so foreground / background is understanding of shell, b...

7
голосов
1ответов
6793 просмотров

Difference between process group id and job id in UNIX

Please tell me the difference between a process group ID and a jobid. Is jobid a builtin of a shell program or is it related to the kernel? What are the uses of each of them? When a process is run in background, is only jobid set or is the pgid set as well? What are the uses of the setpgid() func...

1
голосов
1ответов
563 просмотров

Gracefuly stop .net initiated Java Process

Having the next .net code, I want to stop it correctly so that the jvm executes it's ShutdownHooks. System.Diagnostics.Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardError = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.WindowStyle = Pr...