Questions tagged [pid]

PID (Process IDentifier) is the number that identifies a process running on an operational system.

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

Move Memory Associated with Program to Disk

I am using PsSuspend to suspend processes by their PID that are using excessive CPU or GPU computational resources whenever I am working on something else and need to have the CPU/GPU working on that ...
2
votes
0answers
30 views

Netstate and process that are not there?

8080 port is occupied so I can not start glass fish server on it , so I use netstate and find the PID of program whom use that port , but problem start here there is no process or service with this ...
0
votes
0answers
20 views

How to open 100 file with one proccess?

I know the output of ulimit -S -n is the number of fd that a process can handle or create. How can I open files more than that number to reach the limit of my system with one process ID?
2
votes
1answer
68 views

PID in CMD.EXE is not showing in Task Manager

So I was looking at my cmd.exe > netstat -ano and I noticed that there were two PID's (4472)(9032) that had the same IP address that was showing as established. When I went to compare the PIDs to ...
0
votes
0answers
29 views

Service name from PID

I got a port id(8080) already in use error when try to host a app. tried the below to know which service uses the port 8080 > netstat -aon | findstr 8080 TCP 0.0.0.0:8080 0.0.0.0:...
1
vote
0answers
129 views

Get pid by loaded module name

I need a way to get PIDs of processes that have specific 32-bit .dll module loaded. Powershell (x86) has Get-Process -Module, but it takes too long and doesn't have PID linked if -Module argument ...
0
votes
2answers
1k views

Does systemd's forking service remove PidFile?

I have ported my LSB-controlled daemon to systemd using a wrapper script that starts and stops the daemon. My systemd (multi-instance) service file uses Type=forking, ExecStart=..., ExecStop=..., and ...
4
votes
2answers
4k views

How can I use Monit to monitor a service that does not have a /var/run/ pid file or how can I create a pid file?

I am using Debian 9.8 I have a service that runs my dotnet program. I would like to monitor it with monit but in all of the examples, you need to reference a .pid file in /var/run but my dotnet ...
0
votes
1answer
262 views

Why does PID of apps change/Is there a pattern?

Long story short, I'm trying to write a program in Python that will continuously run the command kill [PID of iTunes but from some testing with the command ps aux | grep iTunes | egrep -v "grep|...
0
votes
0answers
360 views

autossh creating many processes

I'm using autossh to connect to a reverse SSH tunnel. I run it from startup. However, I was facing problems in that the tunnel sometimes goes down. I created a script which checks if the tunnel is ...
1
vote
1answer
827 views

How would I see if a certain Batch File is running and get the PID?

It's a common problem I've run into a lot, where I want to see if another batch file is running or not. This is fairly easy, but then getting the PID is hard. This is why I wrote my own script that ...
4
votes
1answer
6k views

Can not find port in netstat for a specific PID in tasklist

I have trouble finding the port for a running SQL Server (SQLEXPRESS): The command tasklist in CMD shows PID = 3376 for sqlservr.exe. It's the same PID as in the Properties of this SQL Server (...
1
vote
2answers
108 views

Portable way to find all PIDs by cmdline

I want to find the PID of all processes which were run by a cmdline call which contains a certain string my_exec. For instance, with macOS or Ubuntu, open a terminal and run /bin/bash, and then in ...
0
votes
0answers
68 views

Is it possible to pass a PID variable as a parameter into a crontab?

Is it possible to pass a PID variable as a parameter into a crontab: 0 * * * * JETTYPID=$(ps aux | grep "jetty92.state" | grep -v grep | awk '{print $2}') OR Could I just define the variable at the ...
0
votes
0answers
372 views

How to create own process id in batch (Window)

I have a batch script and via that script I have started the logstash. Its running successfully and writing logstash logs in my own file. logstash.bat -f CONFIG_FILE_NAME >> C:\User\logs\agent....
1
vote
1answer
1k views

No need for export when running functions in subshell

I have a msource.sh script that will be sourced: $ cat msource.sh #!/usr/bin/env sh echo "($BASHPID) - sourced ${BASH_SOURCE[0]}" &>> "$logfile" # logfile is defined by the sourcing ...
1
vote
1answer
647 views

bash trap in background functions

Calling a function in a script in background - using '&', the function is called in a subshell. When the function ends, the subshell ends, with an exit status. I would like to trap the exit signal ...
5
votes
1answer
6k views

FFMPEG: How do I set PMT PID on ffmpeg?

I want to set PMT PID/PCR PID/Video PID/Audio PID. I know how to set except PMT PID. ################### ffmpeg -i TESTVIDEO.avi (Input File name) -mpegts_start_pid 0x0010 (PCR PID) -streamid 0:...
2
votes
1answer
4k views

Why is System PID 4, not PID 1?

My Google-fu has failed me! On Linux, the process with the lowest PID is init with PID 1, since it is the first process that gets started after the kernel loads, and is responsible for starting all ...
0
votes
2answers
675 views

Where the process of the service?

At UBUNTU, service postgresql status lists Process: 18534 ExecStart=/bin/true (code=exited, status=0/SUCCESS) Main PID: 18534 (code=exited, status=0/SUCCESS) but when I test sudo ps -ax | grep ...
2
votes
2answers
1k views

What causes a process to restart every time I force quit it?

So I think I've removed hamachi from startup. Done. Dusted. When after a restart a load up a server for a friend to connect. Then noticed he could connect without starting up hamachi. Hmm. Curious. I ...
-3
votes
3answers
792 views

why is my processes in task manager showing ports like 100028,103904 etc ? I know only 65535 are possible in any windows system

I am on W10 x64. This is unusual . I haven't seen port number that high .I know only 65535 are possible in any windows system. it is happening from today ( I have rebooted several times). Is it ...
0
votes
0answers
85 views

How can I find the PID for software where the name of the software is different from the executable?

I run "Videos" software from the Dash in Ubuntu. After some minutes the software freezes. I've tried searching for the PID of the software to kill it, but I can't find any result with these commands: ...
2
votes
1answer
165 views

Init script changes for MongoDB

We have MongoDB (Version 3.0) in production in standalone as well as in cluster mode. Currently we were facing issue that basically states: Unclean shutdown detected hence unable to start mongod. ...
12
votes
2answers
7k views

Is /var/run/user/$UID the new /var/run for PID files?

I have an application (running as a service as root) that creates a PID file under /var/run. But I'm wondering whether this is now no longer best practice. In Linux - alternative places where to ...
3
votes
2answers
455 views

Windows 7 - missing PID in services tab, task manager

So, as stated in the title, PID tab is missing from services tab in task manager. I need PID in order to find a windows service, which causes lots of hard page faults in my system. Any way to fix that?...
1
vote
1answer
674 views

why is PID 0 reading/writing large amounts of data

Just booted my PC up and it was running slower than usual. I went into the resource monitor and its saying that System PID 0 is reading and writing 100,000,000B/sec and its accessing all drives for 50%...
0
votes
1answer
510 views

PID of commands run as different user

While being a root, I want to start a service as a specific user and write its PID file. Minimal nonworking example: if [ $UID -eq 0 ]; then su myuser <<EOF sleep 30 & echo $! >...
1
vote
1answer
1k views

Windows 7 PID consumes 50% CPU almost everyday for hours [duplicate]

I'm trying to determine why these services consume 50% of my CPU for hours at a time each day. I cannot restart the services without error and killing the PID just restarts it in a few minutes and it'...
3
votes
2answers
2k views

Open file in Notepad++ as a tab without closing launched process

Some old tools are designed to work with an external text editor. I am stuck using a legacy tool that does this in the following way: Create a temporary file with the content to be edited. Launch the ...
0
votes
0answers
635 views

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
16
votes
3answers
13k views

How to identify terminated Windows process if I still have its PID?

Background: In the middle of my work, license agreement for installing "Microsoft Mouse and Keyboard Center" suddenly appeared. I'd like to understand what process launched the setup, but using ...
1
vote
2answers
316 views

Kill all tasks with PID above a certain integer with bash

How may I fetch and kill all processes with a PID above e.g 1000? Using commands like ps -A and top is fine for viewing the list of processes, but how would one only get the PIDs? The logic of ...
0
votes
0answers
710 views

How do I figure out a root cause of a zombie process?

A process on a production linux server became a zombie with unknown reason. I wonder if there is a certain methodology to find out what causes it.
0
votes
0answers
133 views

bash: monitoring which files are used by a process in real time

Is there any command to track what files are opened / closed / written by program with given PID in real time? I want to: run a program, enable program file operations monitoring, do some stuff in ...
5
votes
1answer
8k views

How do I determine the PID of my python program if there is more then one python program running?

I have two python programs running on my system, say they are called program x and program y. I want to get the pid of program y, but not x for my bash script. When using pgrep python, I get the pid ...
9
votes
2answers
58k views

Restart process on linux by its pidn number with kill command, how?

Well, I want to be able to restart processes on linux and so I looked into kill manpages for that. Apparently kill -l would list all the signals I could send to a process to do what I need, which are:...
3
votes
5answers
16k views

How to find process pid of an application

I have portable version of an app. I have ran for example 5 multiple instances of it and they all have the same process name but different pids. I want to find a way to for example kill one specific ...
6
votes
1answer
8k views

How to find out who (what process) is starting another process?

So no matter how many times I kill exim4 it immediately comes back to life. I have stopped the service and everything but something is bringing it back to life and using it for spamming. How do I ...
1
vote
1answer
649 views

PID of background task is different to the listed task PID using ps

Note: I h ave moved this to stack-overflow, I think that is the right place: here I have a strange issue, I can't quite get my head around. What I do is run a function called fn_rundumper which ...
0
votes
0answers
83 views

Process ID files missing from remote Ubuntu Linux PC?

I am running Ubuntu 12.0.4 LTS on a PC in my office and on a virtual machine hosted on Azure. For some reason, the remote PC is not creating a PID file for each process. Everything else seems to ...
0
votes
2answers
205 views

How to view the calling script on Linux [closed]

I am trying to write a script to help with computer security. I am trying to look for open ports, find the PID, and find what called it. I have it working, where my output looks something like this: ...
1
vote
1answer
2k views

How Windows/Linux assign PID to processes?

Q1 : I want to know how Windows/Linux assign a PID to a process when that process began? Is it a delimited random number? or it is fixed for a file on a compute? does it have a special algorithm? and ....
1
vote
1answer
663 views

Shell, subshell, source, background process, PID == confusion

I am trying to get my mind straight as to how all these things are put together. For example with this script: #!/bin/bash . script1 ./script2 . script3 & ./script4 & sleep 5 How do the ...
0
votes
1answer
3k views

PID not shown under Services in the Task Manager on Windows 8

I'm trying to run a program that defaults to port 9000 but there is an unknown source using that port. I found the PID by using, netstat -aon | more and went to the task managers service tab ...
3
votes
2answers
6k views

What process is the parent of the init process in Linux?

Who or Which process is the parent of INIT process? INIT is the first process which is initialized by the Kernel, kernel is not one process, So what is its parent process id value?
0
votes
2answers
860 views

Getting pid of process not listed in ps -ef

I know there is a process called blt.pl running on a particular machine but not quite sure which user is running it. i have tried ps -ef | grep -i blt.pl but obviously it's not finding it. Is there ...
1
vote
1answer
2k views

The server quit without updating PID file

I am trying to install MySQL on my Mac w/ Mavericks OS. Whenever I try sudo /usr/local/mysql/support-files/mysql.server start it shows an error The server quit without updating PID file (/usr/local/...
0
votes
1answer
115 views

How to execute a script 20 at a time with different variables at a time in parallel?

I am trying to run 20 files at a time, using warc.sh or a better way to put it is 20 instances of warc.sh at a time with directory contents as the input. I am also trying to watch the PIDs in case bad ...
1
vote
1answer
908 views

Weird start-stop-daemon behaviour?

I have the following script: #!/usr/bin/python3 import sys for s in sys.argv: print(s) Now I execute: sudo start-stop-daemon --start --pidfile /var/run/test.pid --make-pidfile /var/run/test....