Here are some good examples of coding guidelines:
What should coding guidelines do, and are there any good examples of guidelines?
What about more general guidelines? Like the VCS process, communications, etc. I want to write something like this, and it would be nice to get some ideas from what others have come up with after many tr...
Hello, this works, but it kills every Python process.
pkill python
However, I cannot do:
pkill myscript.py
I have also tried killall, but with no luck either.
Do I have to user regular expressions?
By the way, I want to do this in a python script with import os.
...
I found a way to obtain the URL of a torrent file, if I have this in string format, is there a way for me to just launch it whenever a user presses a button in my app?
I know I could save the file and then call it up, but I'd rather just open it. Is this possible?
...
What is the best WCF binding to use for inter-process communication?
I have used WCF over local networks and it is amazing, and I'd like to use it for inter-process communication as well. I do not want to expose the communication over the network, however.
...
I've done a fork and exec() on a process, but I'd like to run it in the background. How can I do this?
I can just avoid calling waitpid on it, but then the process sits there for ever, waiting to return it's status to the parent. Is there some other way to do this?
...
I got the PID of a process and I need to check if it is a zombie using POSIX system calls in C. How should I do that?
The problem I'm having is that I have a process and it forks into many children, the children all do execs and sometimes I want to do the exec in background so I can't really wait() the children that go in background. I ...
hello,
i need to write a program in c# to collect information about processes running on my computer. I successfuly get the processes's names and ID using this code:
...
Process[] processlist;
...
foreach (Process theprocess in processlist)
{
Console.WriteLine(theprocess.ProcessName + ...)
...
I have developed an application in java.
I need that my java program would not terminated any process explorer/task manager.
...
Hi, I'm trying to create a Thread that keeps netsh windows command-line tool open so I can execute netsh commands without open it every single time.
The thing is, once I've created the Thread, just the first command call works... the subsequent calls seems to have no effect.
Here is my code:
public class NetshThread implements Runnabl...
i create some project but when start App. How to Run this App one Process only and name much "test.exe" name only? when Lunch APP ? C# 2.0
...
I'm using Java's ProcessBuilder class to run an external process. The process should not terminate before the Java program does; it must stay alive in command/response mode.
I know that the process streams may easily 'jam' if neglected, so I've done the following:
The program reads the process's combined output and error streams in a "r...
I have a .NET Compact Framework app that can runs on three windows machines (Desktop windows and two WinCE machines) and on the WinCE devices, the process never terminates on exit, even if I call Application.Exit(). Besides .NET, it uses one COM component (which does everything on the UI thread). If I break into the debugger after exitti...
Everyone probably knows the code to run a program and wait for it to end:
CreateProcess(...
WaitForSingleObject(Process.hProcess, INFINITE
It was used several times by myself. But recently I found that this call when it launches a program with a multimedia playback has worse performance than the same process being executed from ...
When I call the Application.Restart() method, the error comes up that detects whether the application is currently running. Is there anyway around this?
static void Main(string[] args)
{
string proc = Process.GetCurrentProcess().ProcessName;
Process[] processes = Process.GetProcessesByName(proc);
if (pro...
Can somebody give me an example of CPU and I/O burst cycle?
I know the CPU must do its calculation during the burst, but how about the I/O? What actually happens during the I/O time?
...
I am trapping for the execution of some old 16-bit applications that our internal folks should no longer be using. They are 1985 DOS apps, so trapping for them was easy... capture any process that launches under NTVDM.exe
Now, the problem is finding out which program NTVDM is actually running under the hood. Apparently there are a coupl...
This is something i have wondered for a while and decided to ask about it.
We have the function getmypid() which will return the current scripts process id. Is there some kind of function such as
checkifpidexists() in php? I mean a inbuilt one and not some batch script solution.
And is there a way to change a scripts pid?
Some clarif...
Hi,
I want to know if there is an efficient solution to monitor a process resource consumption (cpu, memory, network bandwidth) in Linux. I want to write a daemon in C++ that does this monitoring for some given PIDs. From what I know, the classic solution is to periodically read the information from /proc, but this doesn't seem the most...
From what I've read in the past, you're encouraged not to change the priority of your windows applications programmatically, and if you do never to realtime. Could anyone clear up what the realtime process priority setting does as opposed to High, and Above Normal?
...
I'm using a crude IDE (Microchip MPLAB) with C30 toolchain on Windows XP.
The C compiler has a very noisy output that I'm unable to control, and it's very hard to spot actual warnings and errors in output window.
I want to write a python script that would receive arguments for compiler, call the compiler with same arguments, filter resu...