process Questions

14

Solved

when I run ps -aux command on my linux server, to which I connected using putty, few processes are too long to fit in my current window width. Is there an alternative? -- Update -- I am sorry for...
Perpetuity asked 29/1, 2010 at 4:23

5

Solved

Given the following answer (first c++11 answer): How do I execute a command and get the output of the command within C++ using POSIX? Here is the implementation for your convenience: #include <c...
Lollar asked 4/9, 2018 at 10:58

13

Solved

I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an example...
Gifted asked 26/1, 2009 at 5:11

1

I am getting an error in R in Windows 10 about finding a directory while trying to install a package from GitHub*. Trying to troubleshoot this error led me to a few observations. For example, both ...
Wiltonwiltsey asked 14/6, 2021 at 18:15

4

Solved

How to check if a program is running, by its name, with Qt (C++). Will QProcess::pid do the job? I don't know how to use it. Please suggest.
Shortage asked 29/11, 2012 at 20:5

6

Solved

Similar to this question, but in Delphi: How do I find out if a process is already running using c#? I have an updater program, I want it to check the program its about to update is not currently...
Bravin asked 18/5, 2009 at 4:12

2

I have this exact question: https://github.com/Microsoft/vscode-cpptools/issues/511 But the solution there does not work. I've tried the same simple example code, #include <stdio.h> #inclu...
Gonsalves asked 8/10, 2017 at 5:16

11

Solved

I'm trying to port a shell script to the much more readable python version. The original shell script starts several processes (utilities, monitors, etc.) in the background with "&". How can I ...
Wellmeaning asked 28/7, 2009 at 18:56

8

Solved

I would like to be able to monitor certain system calls made by a process, primarily file I/O calls. On Linux I can probably get away using strace with suitable parameters, but how can I do this on...
Coastal asked 14/5, 2009 at 18:6

12

Solved

I have been trying to find a good definition, and get an understanding, of what a thread really is. It seems that I must be missing something obvious, but every time I read about what a thread is,...
Toritorie asked 5/3, 2011 at 5:16

5

Solved

I am looking for a way to have the Emacs compilation buffer triggered by M-x compile, M-x recompile or some compile on save script only appear when the compilation exits either with an error or a w...
Tensiometer asked 15/7, 2013 at 16:34

35

Solved

I want to kill a whole process tree. What is the best way to do this using any common scripting languages? I am looking for a simple solution.
Rog asked 24/12, 2008 at 18:48

9

Hi i have the following process which i cant kill: I am running cygwin in windows xp 32 bit. I have tried issuing the following commands: /bin/kill -f 4760 /bin/kill -9 5000 kill -9 5000 kill...
Shiny asked 4/6, 2012 at 7:19

4

I basically want to run a script (which calls more scripts) in a new process group so that I can send signal to all the processes called by the script. In Linux, I found out setsid helps me in do...
Achates asked 10/6, 2015 at 13:53

2

I recently started looking into the topics of Pico processes (see here and here). I also started reading the Windows Internals 7th Edition Part 1 book. As stated in the book, currently there is no...
Fontanez asked 15/4, 2018 at 18:41

5

Solved

e.g: if I run notepad.exe c:\autoexec.bat, How can I get c:\autoexec.bat in Get-Process notepad in PowerShell? Or how can I get c:\autoexec.bat in Process.GetProcessesByName("notepad"); in C#?
Prefiguration asked 10/7, 2013 at 5:58

5

Solved

I'm making a small ncurses application in Rust that needs to communicate with a child process. I already have a prototype written in Common Lisp. I'm trying to rewrite it because CL uses a huge amo...
Braziel asked 5/1, 2016 at 12:28

14

Solved

Is there any way to set the process name of a shell script? This is needed for killing this script with the killall command.
Bioenergetics asked 19/6, 2010 at 13:39

5

Solved

I have some python automation, which spawns telnet sessions that I log with the linux script command; there are two script process IDs (a parent and child) for each logging session. I need to solve...
Choplogic asked 22/2, 2012 at 18:25

32

Solved

How do you measure the memory usage of an application or process in Linux? From the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent. Why ps i...
Ursulina asked 25/9, 2008 at 3:19

25

Solved

Is there a Pythonic way to have only one instance of a program running? The only reasonable solution I've come up with is trying to run it as a server on some port, then second program trying to ...
Ruse asked 19/12, 2008 at 12:42

9

Solved

Is it possible to pause a process, save the memory contents to a file, and then later reload the file so you can continue the program? Edit I've been reading about this: http://en.wikipedia.org/w...
Rotarian asked 3/4, 2009 at 7:30

6

Solved

exec = require('child_process').exec; child = exec('node child.js'); child.stdout.pipe(process.stdout); child.kill('SIGKILL'); function wait() { setTimeout(wait, 1000); child.kill('SIGKILL'); }...
Sena asked 16/5, 2014 at 23:38

4

Solved

I am attempting to start an external process in a Visual C# 2010 - Windows Forms application. The goal is to start the process as a hidden window, and unhide the window at a later time. I've updat...
Negative asked 30/4, 2012 at 17:3

9

Solved

So I have a process running, and it will take several hours to complete. I would like to start another process right after that one finishes, automatically. Notice that I can't add a call to the se...
Minicam asked 20/9, 2011 at 13:16

© 2022 - 2024 — McMap. All rights reserved.