We changed our privacy policy. Read more.

Questions tagged [process]

A process is an instance of a computer program that is being executed.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

why is htop giving each thread under a process a pid?

Note: not a duplicate of Why does `htop` show more process than `ps` - I want to know why threads have a PID of their own! I'm using htop and looking at a process (rg) which launched multiple threads ...
0
votes
1answer
23 views

How to redirect running process output from pipe to something else?

Is there any way to redirect stdout (1) from that "pipe" (I don't know exacly how I suppose interpret this, I will be glad if someone could explain how to treat this, or give me some read on ...
0
votes
0answers
34 views

Create a histogram in unix using simple bash commands

I have a huge file with almost 1M lines. I want to create a histogram based on the contents of the file. The values in the file would look something like this: 0.0488 -0.0342 0.0345 -0.0524 -0....
1
vote
0answers
26 views

Why PID 1 send SIGTERM

I had this problem for a few days. A process, in this case qbittorrent, will stop after a few minutes. Looking at logs it seems that it just caught a SIGTERM. Alright so I used strace -p {PID} -e '...
0
votes
0answers
18 views

Which process initiates outgoing connections?

Nearly every second an unkonwn process tries to establish a connection to one of my servers: 192.168.4.3.59582 > 192.168.3.42.49152: Flags [SEW], cksum 0x8bc5 (correct), seq 3191149618, win ...
0
votes
1answer
32 views

Skip loop iteration(s) interactively on keypress

I am looping over an array and for each iteration, run a long during process, like this: !#/bin/bash arr=({1..100}) for i in "${arr[@]}"; do echo "$i" sleep 10 done Now I ...
0
votes
1answer
45 views

pid for child of child processes

i'm running a script that calls a child script that in turn calls other child scripts and processes. some of the child processes use a lot of disk io and cpu, and overheats the cpu, causing a crash or ...
0
votes
1answer
18 views

How do I know what process is running for a systemd-timers service?

I'm trying to determine whether a process is running successfully for a service that's scheduled as a systemd-timers service. I have a service scheduled called certbot.service, which I can see using ...
0
votes
2answers
47 views

Run foreground process until background process exited in shell

I'm running QEMU virtual machine in -daemonize mode and then spawn an arbitrary foreground (possibly interactive) process intended to interact with the QEMU instance. In general once foreground ...
1
vote
1answer
32 views

Get CPU usage for past n seconds or minutes

Is there a magic command in Linux for listing the processes active in the last past n seconds by CPU usage? To clarify: Process A is launched and it takes 5 seconds to complete, about 5 more seconds ...
1
vote
1answer
23 views

Does a process' kernel virtual memory contain process specific data?

I don't quite understand this picture from the CS:APP book. It shows how the kernel virtual memory of a process has a region different from other processes. Does this mean, that the kernel in the ...
1
vote
1answer
31 views

Why the value of PRI is different in ps and top?

nginx PID is 19910 The value is 19 in ps -eo pri ps -eo pid,ppid,ni,pri,psr,pcpu,stat,cmd |head -n1;ps -eo pid,ppid,ni,pri,psr,pcpu,stat,cmd |grep nginx PID PPID NI PRI PSR %CPU STAT CMD 19910 ...
0
votes
1answer
23 views

How does the page table of a process knows which page was swapped?

I'm refering to those links: Page table content when the physical page we are looking for is in swap area how does linux update page table after context switch How does the kernel address swapped ...
0
votes
0answers
17 views

Process killed after parent dies despite disown in child shell

Original code: st -e sh -c 'compgen -c | fzf | (sh &)' Reduced version without compgen and fzf (if you want to test in your system for analogous behaviour): st -e sh -c 'echo st | (sh &) St is ...
0
votes
0answers
22 views

How to run Dropbox installed from Flatpak on Fedora automatically?

I'm running Fedora with Dropbox installed. It doesn't automatically update files in the Dropbox folder for me. How can I make it do this automatically? More information: installed using Flatpak on ...
1
vote
1answer
29 views

Is it possible to make a device accessible exclusively by certain programs?

I have a device (a video card) that I need only two programs (expressed as paths, e.g. /usr/bin/myprogram) to access. The device has a /dev file (e.g. /dev/mydev1), but I can also use other references ...
0
votes
0answers
33 views

Is there a way to monitor L1, L2 and L3 cache usage with command line?

I'm looking for a way to know, using command line, how much CPU mem cache is using a running process... is there a way to do that? Thanks in advance
0
votes
0answers
14 views

How am I able to check what triggered a process to run at a certain time?

I'm seeing a process popping up every 6h in one of my machines. I've checked the cron files and no user has anything that would trigger a cron job every 6h. I'm trying to understand what is triggering ...
0
votes
1answer
31 views

What parts of a process memory can get swapped?

I'm trying to learn more about the swapping system of the linux kernel. I figured out that if a r/o or a code part of a binary in memory needs to get swapped, it shouldn't be moved to the swap file/...
0
votes
1answer
122 views

Using a wildcard with "killall" doesn't work other than from /tmp

I have /tmp/bash.sh that contains a script like this: killall name* It works fine if I go to /tmp folder and then run ./bash.sh, but if I go to / then run /tmp/bash.sh or ./tmp/bash.sh it doesn't ...
0
votes
1answer
83 views

Remove window from Alt-Tab-Menu

I'm using pop_os with Wayland and I was wondering whether there was a way to remove certain processes from the Alt-Tab menu. In my case I have a certain gjs process @!0,28;BDH which appears in my Alt-...
2
votes
1answer
41 views

Can not stop nohup process

I am trying to run a very complex statistical model that I expected to take a very long time, so I used nohup to run the process. However, I underestimated the length and it would take like 260+ days ...
1
vote
1answer
35 views

how to know what the process that connected to my machine VIA specific port

with the following command I want to get which are the IP's that connected on my machine with port 8088 18.23.292.9 is machine that resource manager service is running on with port 8088 ss -tanp | ...
9
votes
3answers
529 views

Why sleep command process is still running in the background while I stopped it with CTRL-Z?

What I do is: sleep 5 and immediately CTRL-Z so when I open jobs I see: [1]+ Stopped sleep 5 next when I do fg %1 sleep process is no more running, it's done so that means it was ...
0
votes
1answer
30 views

Catch process which exits immediately and respawns fast

On Linux server there are many log messages like these: Jul 17 09:22:34 sweden sudo[3631848]: pam_unix(sudo:auth): auth could not identify password for [myuser] Jul 17 09:22:34 sweden sudo[3631848]: ...
2
votes
1answer
47 views

What is the real reason why nohup ./a.out dies when SSH session times out?

When you run ./a.out in a terminal over SSH, and then the SSH session times out, ./a.out is killed. Why is this? Some say that it's because of SIGHUP. But running nohup ./a.out still has the same ...
0
votes
1answer
64 views

"device disconnected or multiple access on port" error

I'm programming in Python 3 on a Raspberry PI 4 running current Debian. My program uses serial port /dev/ttyS0 to send binary requests to a MP3 player board. The documentation about the MP3 player ...
0
votes
1answer
29 views

Pasting files and concatating files together

I have various years and months of data for numerous site locations. I have computed the average for all months for each needed year. Each Month/Year has its own its own file. Not all sites have data ...
-4
votes
1answer
59 views

What's the difference between: application, program, process, job, task, service, daemon, script, command? [closed]

Can someone clearly provide the differences and/or equivalences between these terms? I always get something mixed up, and keep losing track whilst reading documentation... Helpful previous answers: ...
1
vote
1answer
64 views

Get Window title from PID

I want to kill a terminal session based of the pid and title name. Lets say pidof returns 55175 as pid, the window title is TestWindow, I've set it with alacritty -t "TestWindow". Killing ...
0
votes
1answer
40 views

How do I do "ps" command on a thread?

The ps command can be done in terminal to view information about a process. For example, #list processes ps aux #with executable paths ps -ef #path for a specific process ps -p [pid] However, if a ...
0
votes
0answers
35 views

Watchdog test binary: "Operation not permitted"

I use one of my computers only as a remote-controlled device. Sometimes it gets into a weird state in which it doesn't respond to AnyDesk anymore and doesn't show anything if I connect a screen. I ...
1
vote
2answers
28 views

When a daemon is re-parented to init (Pid 1) is the original PPID stored anywhere?

I am fairly certain the answer is no, but I was wondering if it's possible to decipher the original parent of a daemon process, prior to their daemonization and subsequent re-parenting process.
2
votes
3answers
99 views

Waiting for any process to finish in bash script

I am trying to check how many active processes are running in a bash script. The idea is to keep x processes running and when one finished then the next process is started. For testing purposes I set ...
0
votes
1answer
41 views

Command, args and process name

I learned recently of pidof, and I was comparing it to pgrep. While doing that, I noticed that pidof returned several PIDs for Firefox, while pgrep returned just one. I checked pgrep's man page and ...
0
votes
1answer
42 views

detach a process, then continue a command [duplicate]

When I try something like $command &; command2 , bash returns me bash: syntax error near unexpected token `;' How can I do that?
1
vote
1answer
31 views

handling zombie process status

I am new to scripting. I am writing a process status monitor script that should catch when a process gets killed, zombied or sleeping etc. I am not sure this is really a good script, if any better ...
1
vote
0answers
14 views

How to stop processes to umount mountpoint for fsck

I am trying to do fsck on the NAS via ssh on /volume1. The volume has to be unmounted, and all processes with reference to /volume1 need to be stopped accordingly. Therefore, logged in as root, all ...
4
votes
1answer
846 views

Delete / Kill a process which won't die

I'm using Linux Ubuntu 20.04. I have a process with PID 21: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21 root 20 0 0 0 0 S 0.0 0.0 0:00....
0
votes
0answers
15 views

linux process lookup/process library?

This is a script (I am not the author) that basically runs ps -eo comm every second, display and log processes not in whitelist. I want to modify it to make it easier to be able to identify and ...
0
votes
0answers
47 views

Strace displaying results in ASCII only at process ending and not runtime

I'm searching a way for strace to print the content of the write(...) syscall to ASCII and not useless bytes ! The Strace command I use : sudo strace -e write=1 -e trace=write -s9999 -p 551 2>&...
1
vote
1answer
22 views

Find the process command spawned by another process

I have a python script. This python script will attempt to execute Unix command via the system() command. I want to know what this command is. This logic is hidden very deep inside many dependencies, ...
1
vote
0answers
29 views

Unexpected behavior when querying the PID of bash or zsh when using the --command/-c flag

I am observing odd behavior when examining the PID of certain shells when executed in a non-interpreted context. In the below examples, I see that the PID is pointing to the shell, as expected. sh-4.3$...
0
votes
0answers
19 views

Bring back process after closing terminal [duplicate]

Is there a way to "reopen" a process that is running? I accidentally closed my terminal window and it was running a openvpn. Is there a way to bring that process back to the focus of the ...
1
vote
1answer
25 views

Sleep process continues after job stopped

Here is a small file which sleeps for 10 seconds and then echos. #!/bin/bash sleep 10 echo $$ When I execute the script with ./test and pause after 3 seconds or so using ctrl-z, I see that the job ...
0
votes
2answers
177 views

How to check if a java process in unix is killed?

I have a java application on Unix. This application unexpectedly stops. I am looking for what is the problem. How can I tell in a java process started on Unix, if this process is being killed? (with ...
3
votes
1answer
42 views

In what circumstances will a process be in state X (dead)?

According to fs/proc/array.c:130, the following array defines various process states: /* * The task state array is a strange "bitmap" of * reasons to sleep. Thus "running" is ...
0
votes
0answers
45 views

Advantages of non preemptive kernel? [duplicate]

The Question is still unresolved since the duplicate answer was wrong (has a false claim as I explained in my last comment) I have seen the following question: Why the first Linux developers chose to ...
0
votes
1answer
21 views

What is electron-wrapped process?

I found this process today but I don't recognize it. Searching i found that is a tool but I haven't installed it.(directly) Can it be a problem to consider? Thank you!
0
votes
1answer
28 views

Process I\O vs CPU bound?

I saw this question online preparing for a job interview: Given a Non-Preemptive kernel which type of process will get effected more in terms of performance and why? I\O bound CPU bound I know ...

1
2 3 4 5
49