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
1
vote
1 answer
Run a PHP script as a background process on a WAMP server
I have two PHP scripts that need to be run as continuous background processes on a WAMP server.
WAMP is installed on a Windows 7 PC. These scripts are already reside in separate folder in the www root directory.
I am using the following versions of…

arlahiru
- 31
- 2
- 4
1
vote
1 answer
kill all process spawned by parent process with ssh -x -n on other node
A software named G09 works in parallel using Linda. It spawns its parallel childs on other node as
/usr/bin/ssh -x compute-0-127.local -n /usr/local/g09l/g09/linda-exe/l1002.exel ...other_opts...
However, when the master node kills this process, the…

Prince
- 11
- 4
1
vote
2 answers
Will the background process exit when you log out in linux?
[root@~]# ./file.sh &
I don't know if $! will terminate if I just log out immediately?

vps
- 1,227
- 3
- 13
- 14
1
vote
1 answer
Application Pool set to AlwaysRunning does not Auto Start The Hosted Service
I have configured an pool to auto-start and never sleep. I am having problems with the auto-start. My understanding is that a thread pool worker will be started after a recycle when that happens I would assume the application entry point would be…

Ross Bush
- 121
- 1
- 6
1
vote
1 answer
systemd kills my ngrok session started from python
I have a script i wrote that listens on mqtt.
When certain code arrives to the mqtt server then an ngrok session is started like so:
subprocess.Popen(['/tmp/ngrok','http' ,'8080'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
the scrupt…

codeScriber
- 157
- 4
1
vote
1 answer
too many ssh-agent process per user on several servers
Several users seem to have problems with the usage of ssh-agent in their login environment. sri for instance has 1295 of them running on login02. And many other users are having same issue.
I am seeing the same problem on other machines, and with…

gokam
- 13
- 7
0
votes
1 answer
logger and tee running in background?
Sometimes I notice the server is running slowly and at those times a ps -e shows that logger and tee are running but I can't think of why. Is this a known issue? Why would these need to run without being called? When this happens there are very…

stone.212
- 277
- 1
- 2
- 12
0
votes
2 answers
re-parenting to screen two processes joined by pipe
Let's say in a PuTTY connection I start
mysqldump --host host1 --databases db1 db2 db3 | mysql
which creates two processes: mysqldump with PID 5800 and mysql with PID 5801. Is it possible to let the running processes continue execution when I want…
user178826
0
votes
4 answers
CPU bumps to 100% in a PHP web application: How do find out what started it?
I have a Debian server (Amazon AWS) with a PHP web application that is used by hundreds of users.
My CPU usage is almost always below 10%. Today around 12:00AM~ I had 2 insane jumps to 100% for exactly 1 minute and then got back to normal.
I am…

Rick Sanchez
- 241
- 1
- 2
- 11
0
votes
3 answers
Edit a command send to background
Is it possible to edit the command line of a process sent to background, or to chain another command to execute after the first command has exited?
Eg:
I start mirroring a site with wget -m site.com but later realize that I want to be notified by…

Joel G Mathew
- 890
- 1
- 9
- 19
0
votes
1 answer
How do I run a program as another user properly with "nohup" and "&" in bash
I have been learning bash and linux administration over the past few months while producing more and more code that needs to run in the background. I would ideally like to run my development system closer to where it would be in production in order…

Kaloyan Pashov
- 3
- 1
- 2
0
votes
1 answer
Understanding how to foreground a background process correctly
I am wanting to background a long running script, which I know I can do using the following:
nohup ./install.sh &>/dev/null &
However, I also realize that if I leave that session, I can no longer see it running using job, since it would be running…

Zed Said
- 717
- 6
- 14
- 25
0
votes
0 answers
Windows: add user group to file created by a specific process
In our (mixed) Windows network we have a machine with a shared folder. This shared folder can be accessed by anyone belonging to the group User.
However, in this folder, there are files that are created by a specific background process on the local…

fritzmg
- 101
- 3
0
votes
1 answer
Typing in terminal interferes with `nc` running in background?
I can run these two commands:
nc -l localhost 8888 -v >> output.txt &
(while true;do sleep 1;echo a;done)|nc localhost 8888 &
All works as expected with output.txt filling with "a"s (tailed from different terminal). But if type a single character…

AJP
- 143
- 1
- 7
0
votes
1 answer
How to run Azure cmdlets in background?
Several Azure PowerShell cmdlets have very tedious run times; a trivial task such as setting a static IP address on a virtual machine can take more than a minute (I guess this is because the cmdlet is actually sending commands to Azure and waiting…

Massimo
- 70,200
- 57
- 200
- 323