Questions tagged [pid]

Process Identifier (PID)

In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by most operating system kernels (such as that of UNIX, Mac OS X or Microsoft Windows) to (temporarily) uniquely identify a process. This number may be used as a parameter in various function calls allowing processes to be manipulated, such as adjusting the process's priority or killing it altogether.

Source: wikipedia

108 questions
0
votes
1 answer

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changees the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is used. With completion and everything.
Nordlöw
  • 165
  • 5
0
votes
1 answer

dead parents tree for debugging

$ ps UID PID PPID C STIME TTY TIME CMD il 17626 1 0 14:02 ? 00:00:00 /bin/bash /usr/bin/xdg-open file:///media/distrpart/Downloads/utorrent/test.png I want to know who launched xdg-open, but the parent is…
basin
  • 558
  • 1
  • 5
  • 22
0
votes
1 answer

nscd dead but subsys locked

service nsd status nscd dead but subsys locked It starts fine but eventually crashes... server: logfile: "/var/log/nsd.log" pidfile: "/var/run/nsd/nsd.pid" What randomly causes NSD to do this? Log: [1354003784] nsd[403807]: notice: nsd started…
Linda Thomas
  • 21
  • 1
  • 2
0
votes
1 answer

PID of a command executed in bash

I need a linux / unix command that will execute another command and write the PID of the command it executes to a file... is there such a command? I am not looking for any scheme that puts processes in the background and leverages the shell var…
Mike Pennington
  • 8,305
  • 9
  • 44
  • 87
0
votes
1 answer

Shell script Process PID logging and maintenance using exec

I am trying to launch a java process as a server and then might periodically need to restart/kill it at certain times. Since I use a shell script to launch java jvm(to build classpath), I thought of logging the shell script process id using $$ and…
aditya
  • 13
  • 2
0
votes
2 answers

Memory usage by PID?

I was trying to measure how much memory an application is using in the current moment. So here we go, free -k -t: [user@server ~]$ free -k -t total used free shared buffers cached Mem: 1026076 581880 …
Guapo
  • 453
  • 2
  • 5
  • 13
0
votes
2 answers

WinServer 2003: Cant find process holding onto ports

We have a couple of production WCF services failing to start because their ports are apparently in use by another process. I have done a netstat -ano and found the PID's that are using these ports, which are all in the LISTEN state. The ports for…
MrLane
  • 247
  • 1
  • 3
  • 9
0
votes
1 answer

Do something with Apache's root PID before it forks

I need to set a property on the root Apache process which in inherited by its children (e.g. oom_adj, cgroup membership). However, Apache will fork itself as soon as it starts. Using $$ in the init.d script doesn't seem to work - nothing is…
Vladimir Panteleev
  • 1,737
  • 5
  • 20
  • 34
0
votes
0 answers

fuser not listing the process even netstat and lsof list

hostserver:~# lsof | grep *:6343 sflowtool 979324 root 3u IPv6 1443815323 0t0 UDP *:6343 hostserver:~# netstat -ntlup | grep 6343 udp6 0 0 :::6343 :::* …
0
votes
2 answers

How to get PID of an EXE file from Windows command line

How do I get the PID of an EXE file from Windows command line? I want to query the PID from the command line, rather than manually search in Task Manager. I've found something similar in nix
0
votes
1 answer

Why does monit complain about not being able to read the pid file?

I'm nrew to monit and have a question regarding the pid files: I have added the following to my /etc/monit/monitrc: cat /etc/monit/monitrc set daemon 30 set logfile /var/log/monit.log set idfile /var/lib/monit/id set statefile…
BitFreak
  • 103
  • 2
0
votes
0 answers

How do I find the ProtonMail Bridge PID file on my server?

I installed Monit on my server, as well as the "ProtonMail Bridge". I followed the following tutorial : https://pychao.com/2020/06/10/update-on-using-protonmail-bridge-on-headless-wordpress-linux-servers/ How to know the path of the "ProtonMail…
Mathieu
  • 45
  • 2
  • 8
0
votes
2 answers

How do I locate a service on my server?

I installed Monit on my server, as well as the "ProtonMail Bridge". How to know the path of the "ProtonMail Bridge" service to add it to Monit ? ubuntu@www-example-com ~ $ ps -ef enter image description here
Mathieu
  • 45
  • 2
  • 8
0
votes
1 answer

Structure to track running/completed scripts in proc/

I have a script that runs every hour, and without using a database, I would like to check if that file is either: (1) currently running; (2) already completed; or (3) not yet run. If it's #3, then I run it, otherwise I skip it. What would be a good…
-1
votes
1 answer

pidof service doesn't exist

I am trying to set init.d script for some service - let it be uptime that is located in /usr/bin/uptime. Here is my script: #!/bin/bash # description: read service #Source function library .…
fuser
  • 113
  • 6