On POSIX systems a background-process is created in a shell by either adding an ampersand symbol after a command (e.g. ./script.sh &) or by pressing CTRL+Z while the command is being executed. The command will then run independently from the shell but will still write stdout and stderr output to the shell from where it has been started. It can only be stopped with the kill command.
Questions tagged [background-process]
91 questions
0
votes
2 answers
Identify where and how background process are started and where they comes from
First the short story: I need to migrate a server (applications, configurations and so on) and I have no clue about what is in there, no docs, people at charge just abandon and didn't leave any information so it's a kind of black box or black hole.…

ReynierPM
- 710
- 5
- 14
- 30
0
votes
2 answers
Ubuntu server terminating background process when last ssh closed
I have an Ubuntu 14.04 server and I am trying to start Apache Karaf from a ssh, exit the ssh and expect Karaf to remain execting. What I actually find is that as soon as the last ssh is closed/logged out, the Karaf process is terminated.
I start…

D-Dᴙum
- 153
- 1
- 1
- 10
0
votes
0 answers
Displaying the window of a background process started by task scheduler in the current login?
Is it possible to bring a window that has been started by the task manager in the background to the foreground of an RDP session provided that the same account started the task?
And if so how?

leeand00
- 4,869
- 15
- 69
- 110
0
votes
1 answer
Background job terminates when run from script, but works fine when run from bash prompt
I'm on MacOS 10.9.4. I want to put sftp to background to automatically push some files to it through named pipe later, as suggested here. It works fine when I enter commands manually from bash prompt (using cat as listener job for simplicity):
$…

Grigory Glushko
- 3
- 3
0
votes
1 answer
How can I find a specific PHP process with pgrep (monit related)
I've got a number of php processes that I'm running in the background, with monit as the manager for them. My current config for monit looks like:
check process myprocess1
matching "process1.php"
start program = "/usr/bin/php…

Jim Miller
- 713
- 2
- 11
- 23
0
votes
2 answers
How to kill the process using the name of the program instead of PID?
I started my Python program in the background using nohup as mentioned below -
nohup zook.py &
Now I am trying to kill this process so I did the ps command as mentioned below
root@phxdbx1145:/home/david/zook# ps ax | grep zook.py
16352 pts/6 S+…

arsenal
- 217
- 1
- 4
- 11
0
votes
1 answer
In AWS Ubuntu, python process stopped itself when running in background with &
command to start python process:
python /root/serverFiles/Cusp.py 8001 >> /root/log/cusp.log 2>&1 &
Cusp.py is a python code to call a bio-sequence process tool and return result. all the python code and bio-sequence tools are under "/root"…

user2068965
- 101
0
votes
4 answers
Seeing what background process is up to
I currently have a background process on my unix server that's running hours longer than it should be.
I can't remember the command to allow me to see the output of a background process. I'll remember to bookmark this answer!

Ian
- 251
- 2
- 10
0
votes
1 answer
How to delay and queue commands for execution at a later time?
My site receives numerous uploads and I can't afford to waste cycles and time processing them on the spot (e.g., trimming, optimizing, resizing, etc.). What technologies exist to delay and queue these non-essential commands for execution at a later…

MarkL
- 13
- 1
0
votes
1 answer
Sending signals to running Upstart job
How can I send signals or events to a running Upstart job?
I run a Node.js HTTP server with Upstart as a daemon and sometimes need to put it into maintenance mode for backups and stuff.
I'd like to send a signal to the node process, which then will…

buschtoens
- 169
- 1
- 11
0
votes
1 answer
Continue running a task with terminal disconnected?
Say I'm running a task on a remote (Ubuntu) server which last hours, but I need to disconnect my shell client now. Foolishly, I didn't use screen or think of starting the task with nohup.
Is there a way to perhaps pause the task, then start it up in…

Steve Bennett
- 5,750
- 12
- 47
- 59
0
votes
1 answer
Not killing background processes when exiting an xming / xlaunch gnome-session
I am logging in to a remote linux box using xlaunch with gnome-session --display=$DISPLAY. If I start a background process, is there a way to have it stay alive (keep running) when I exit Xming so that it completes or still shows up when I log-in…

Benjamin
- 183
- 8
0
votes
5 answers
"Silent" Backgrounding a Process
I have added a git pull & to my bashrc to keep a particular project always up to date!
However this means every time I open a terminal I get a message like
[17]+ Running git pull
And a few seconds later
[17] Done
Is there a way to stop this…

Pez Cuckow
- 525
- 3
- 8
- 22
0
votes
2 answers
Apache, httpd process 4MB+ memory use, Wordpress, Dedicated Server
What is happening to apache? I cannot trace down the processes doing this to my server. I can't anymore, the server is crashing every day a few times. Don't know what to do anymore, tried all the answers here, i can't find the problem.
apache …

david
- 1
0
votes
2 answers
Start processes at the same time
I have written a bash script which inturn needs to run around 130 Perl scripts.
#!/bin/bash
perl file1.pl &
perl file2.pl &
perl file3.pl &
....
....
perl file130.pl &
The above bash script is configured in the cron to run after every 10 minutes.…