Questions tagged [processes]
47 questions
42
votes
5 answers
I am using `&`: why isn't the process running in the background?
I know that I can append & to a command to run the process in the background.
I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py & -- but when I go to close the terminal window I get a message saying that…
bernie2436
- 6,505
- 22
- 58
- 69
25
votes
4 answers
Processes in background without “&”
Let’s say you started a new application in Linux (like a text editor, etc.), but you forgot to use the “&”. What command(s) would you use in order to make that process run in the background, while NOT having to CLOSE that application? In this way,…
D0uble7
- 359
- 3
- 3
13
votes
1 answer
How to find processes using serial port
I'm using uclinux and I want to find out which processes are using the serial port. The problem is that I have no lsof or fuser.
Is there any other way I can get this information?
Kermit the Hermit
- 233
- 1
- 2
- 6
11
votes
4 answers
What is an open file description?
When you fork a process, the child inherits its parent's file descriptors. I understand that when this happens, the child receives a copy of the parent's file descriptor table with the pointers in each pointing to the same open file description. Is…
user68207
10
votes
4 answers
Is is possible to copy a running process between machines?
To the best of my understanding, all linux process are actually files, is it possible to copy a running process from one machine to another?
for example - copy a running tomcat server from one machine to another without having to restart the server
aviad m
- 123
- 1
- 5
6
votes
1 answer
lsof misses files
Why does lsof fail to list files I have open. For example I open with the text editor some file in my home directory.
$ gedit ~/.python_history
lsof does not even work as root
$ sudo lsof | grep python_history
does not list anything. Why?
Editing…
sdgsrg
- 61
- 1
5
votes
3 answers
Get the terminal emulator name inside the shell script
I have used pstree to find the name of the parent emulator of running shell script using something similar to the following:
pstree -s $PPID | awk -F '---' '{print $6}'
This works in my current system. I tested in mate-terminal and xterm but not…
Vombat
- 12,654
- 13
- 44
- 58
4
votes
1 answer
List loaded libraries of a process on FreeBSD
How can I list all loaded libraries of a process in FreeBSD? On Linux I can use /proc
cat /proc/$pid/maps
on Solaris there is pldd
pldd $pid
For FreeBSD /proc also works:
cat /proc/$pid/map
however, /proc is not mounted by default. As this is…
Thomas Erker
- 2,777
- 12
- 19
3
votes
3 answers
How to list all linux processes that had any network activity during some period of time (past or future)?
I'd like to know which processes use the network:
To inspect if any unknown to me (and potentially malicious) programs on my system use the network;
To learn the amount of network traffic by the process, and further broken down by protocol HTTP,…
latgarf
- 131
- 3
3
votes
2 answers
Expect script: How to handle two processes?
I am using Expect to automate VoIP calls for quality measurements.
My script is calling another VoIP client for a given amount of times. Before the calls should be handled, tcpdump should sniff all the packets. While tcpdump occupies the terminal,…
timolemow
- 63
- 1
- 5
3
votes
2 answers
how to get info about the user and the processes he is running in systemd?
If I wanted to know who is logged in since when and what are the processes currently running under his control, how can I do that in systemd?
drpaneas
- 2,222
- 8
- 25
- 35
2
votes
1 answer
Find out what process accesses file/device
The external hard disks attached to my Raspberry Pi spin up seemingly randomly and I don't know why. They form a RAID 1 managed by mdadm whose only partition is formatted with ext4.
Today, I set up a screen running
$ while true; do inotifywait -r…
UTF-8
- 3,175
- 5
- 23
- 50
2
votes
2 answers
dbus-launch and dbus-daemon - what's happening
I grepped the ps output for dbus with the following output:
102 742 0.0 0.0 4044 1480 ? Ss Apr16 27:13 dbus-daemon --system --fork --activation=upstart
xralf 2551 0.0 0.0 4076 212 ? Ss Apr16 0:14…
xralf
- 16,149
- 29
- 101
- 149
2
votes
2 answers
Investigating problematic processes
When a command or process seems to hang, freeze, crash, or whatever; is there a way to investigate exactly what it's currently doing (if anything), behind the scenes?
Would be especially useful to determine if it's crashed, or if it's just carrying…
voices
- 1,252
- 3
- 15
- 30
2
votes
1 answer
Is the coordination overhead between two processes significant?
I have 24 compute intensive processes, each process running in a single thread, each running about 2 hours. I'm on a 8 core CPU.
Does it make a difference on the total run time, if I run all 24 processes at the same time in contrast to running only…
lukstei
- 141
- 1
- 3