Questions tagged [process]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
29 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
33 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 | ...
8
votes
3answers
396 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
28 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
39 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
22 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
55 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
40 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
34 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
21 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
25 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.
-1
votes
0answers
77 views

Kill all sleeping processes in linux

How to kill all processes in sleeping state in linux? Will the command below work? killall sleep How to find list of all processes linux? ps -aux. Is this correct?
2
votes
3answers
63 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
35 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
40 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
28 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
13 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
767 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
14 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
26 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
21 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
28 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
16 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
73 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
37 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
16 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
20 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
vote
2answers
31 views

Get full command name of high memory usage process in UNIX

I am trying to capture process name which are using high memory on my box. I ran below command to get that while [ 1 ] do ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head sleep 5 done But the ...
0
votes
1answer
27 views

List processes associated with shared memory

When I run ipcs -m I get below info ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000 38699014 user 700 8125440 2 dest 0x00072 2064391 ...
0
votes
1answer
29 views

Process alert - stop or block user from doing this

How would i resolve this issue? I have already tried following How to disable a specific command for a specific user in Linux from The Geek Diary User:clipdrop PID:8426 PPID:8401 Run Time:0(secs) ...
0
votes
0answers
9 views

A question about wait system call and related macros

I study the family of the wait system calls and I noticed that there are some macros, for example, WIFSTOPPED (status) that they are not associated with a definition (according to elixir.bootlin.com) ...
1
vote
2answers
49 views

Close recently opened process in .sh

I am new to Linux and trying to learn how to launch and close processes automatically. Eventually I would like to run this/a similar process with cron. Here, just testing "checking in" to ...
1
vote
1answer
29 views

Why are PIDs in new PID namespace not contiguous

I am running Ubuntu 20.04. According to https://lwn.net/Articles/531419/ and https://stackoverflow.com/questions/3446727/how-does-linux-determine-the-next-pid/3457108#3457108, assigned PIDs should be ...
0
votes
1answer
27 views

Why I can't send SIGRTMAX-9 signal with kill command?

I have a bash script running in the background and wanted to send the SIGRTMAX-9 signal to it. SIGRTMAX-* case Why kill command doesn't recognize the SIGRTMAX-9 signal? ╭─ /tmp/tmp.KHFbrCQhOB ...
0
votes
1answer
132 views

Game dedicated server application crash/lag after some time on Ubuntu 18.04 - xfce4 GUI

I've been running a game server application which, after some time (hours of running even full without any kind of problem), crashes with all the people connected to it (it just lags for one/two ...
1
vote
1answer
55 views

What's the difference between a “job” and a “service” to systemctl?

What's the difference between a "job" and a "process" "service" wrt these two systemctl commands? root@linuxbox:~# systemctl list-jobs No jobs running. root@linuxbox:~# ...
1
vote
1answer
57 views

How to stop Ubuntu processes to stop fan from making noise?

I am using an UBUNTU OS on my ASUS G75VW machine but the fan noise is not pleasant at all. It affects my meetings and kills my quietness: I'd like an advice on how to stop this probably by killing ...
0
votes
0answers
23 views

Shortcut (not command) to kill immediately and without question the current process running in front (in the active window)

On GNOME, I was editing a file on gedit (6,500 lines, but about 500 MB). I did a regex replacement, then rethinking about it, undone it : my computed froze immediately with gedit working to undo it, ...
0
votes
1answer
35 views

how to avoid deletion of folders under /run or /var/run

the following folder --> /var/run/kafka , include the PID number of the kafka service example ls -ltr /var/run/kafka/kafka.pid -rw-r--r-- 1 kafka hadoop 7 Nov 10 14:14 /var/run/kafka/kafka.pid ...
0
votes
0answers
39 views

NOHUP stopped working

I've been using nohup for years on my server without any issue. Suddenly today it stopped working and the process ends as soon as I exit SSH. I have multiple accounts on this server and the problem is ...
0
votes
1answer
27 views

Why process information is stored in /proc as process information is in kernel which is in RAM and /proc in secondary storage?

/proc is a directory we find in root in linux. it contains processes' information. but actually, process table and all that stuff is stored in kernel which is in RAM. please answer my query. I may ...
1
vote
0answers
9 views

Symlink to file in /proc [duplicate]

I was looking at some different files in /proc, and observed some strange behavior. So, first of all, we know that symlinks [point to names, not files][1]. And when creating a symlink, I can both ...
0
votes
0answers
13 views

Understanding sysinfo Ouput for Custom Init Process

With qemu: qemu-system-x86_64 -s -S -enable-kvm -m 512M -drive format=raw,file=myos.img -kernel {5.11.6-kernel} -append "root=/dev/sda init=/sbin/myint nokaslr" The C code (omitted libc ...
0
votes
1answer
25 views

Start process and access the “shell” at a later time

I have a remote testing machine which is experiencing some failures. What I would like to do is trigger a gdb process upon failure on the remote machine, and then ssh into the remote machine and ...
0
votes
0answers
23 views

Telnet not working for a specific process

I have etcd process running on serverA on port 2379. I am trying to telnet to serverA from serverB and its showing connection refused. # telnet <IP_serverA> 2379 telnet: Unable to connect to ...
0
votes
0answers
29 views

can not find process which use most memory

the result of free -g: so i check top, and press m, but still can not find any process using most memories, PID USER %MEM TIME+ COMMAND 3792 root 0.0 580:46.07 statmon 18361 root ...
18
votes
1answer
2k views

Process states in OS theory vs in Linux

I'm trying to map Linux process state codes (as in ps) to states in the OS state diagram but I can't seem to map them. Is it because Linux process states don't necessarily match the theoretical OS ...

1
2 3 4 5
49