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
Where are the SQLServer jobs stored?
I'd like to know what is the process a SqlServer job is executing, but I only can find that it calls DTSRun with an encrypted string.
After decoding the string, it results is just the name of the job with the user and the password.
How can I find…

Saiyine
- 143
- 1
- 5
0
votes
3 answers
Run netcat in background on Ubuntu Lucid 10.04
I am trying to do a pg_dump from one server and simultaneously restore at the other server.
The command on source server (192.168.3.94):
pg_dumpall -v | nc 192.168.3.95 4000
The command on the target server (192.168.3.95):
nc -l 4000 | psql…

sayeed
- 1
- 1
- 1
0
votes
2 answers
View a program under a different login session? (Windows Server 2008)
we have a server which is running WinSrv 2008 (not R2). There is a scheduled task on this server which runs at startup and just runs continuously, waking on an interval per a db setting to do work and then go back to sleep (the client wanted to be…

eidylon
- 358
- 1
- 7
- 20
0
votes
1 answer
Running A command in linux via ssh2 that keeps running when session ends
a simple question to one who knows...
I want to run a program in a Linux shell (ssh2)
I run the program with '&' so it should run on the background
But when I end the session , the program aborts.
How can I make the program run until finished and be…

Dani
- 531
- 3
- 11
- 24
0
votes
1 answer
time nohup ./script --> the time hasn't been logged
I need to measure the time that Firefox takes to build itself from the source code. Here's what I do normaly:
nohup ./mach build > my_log.log &
I then prepended time to it:
time nohup ./mach build > my_log.log &
However, this hasn't made it…

Kentuk
- 1
- 1
0
votes
0 answers
Can I run Cloud Automation (azure/aws) for web apps in background doing other manual work parallel?
my goal is to automate some tests for a web app and in parallel do some other staff manually (like writing code locally or research or writing reports) and don't collide with it. I used softwares like Ginger, Power Automate Desktop but i'm not able…

Antwnina
- 1
- 1
0
votes
0 answers
ssh connection reuse breaks -f (background launch), why?
When not using connection sharing the following will return immediately after launching a remote sleep process:
$ ssh -f host "nohup sleep 10"
However if I specify that I want to use connection sharing in ~/.ssh/config like this:
host *
…

samwise
- 1
- 1
0
votes
1 answer
Proper way to put http-server into background
I'm using raspbian on a pi Zero to serve a simple static HTML page with an index.js and some styling.
I'm using the npm package http-server I've installed it globally.
https://www.npmjs.com/package/http-server
In the terminal (using ssh), I've done…

user2402616
- 109
- 2
0
votes
1 answer
command that cannot work in background (asterisk)
am trying to run script in background which contain command such like "asterisk -rvd >> xyz.log", when I run it directly it work well but when run it with any background way (service, cron, &, nohub,,) it stop directly with this message:
stopped
so…

Centos
- 11
- 2
0
votes
0 answers
What could cause processes to not be active
Running linux and executing a bunch of PHP scripts. I noticed that our CPU usage was pretty low but many processes were sleeping, so started investigating.
AWS EC2 with an S3 bucket.
I can't seem to find any bottleneck but maybe I'm interpreting the…

D.Mill
- 379
- 5
- 15
0
votes
1 answer
How to terminate real time logging after it has been initiated with journalctl -f &
Environment: CentOS 8
I turned on real time logging with the command,
$ journalctl -f &
I got the information I needed but unfortunately I'm not sure how to stop it. [CTRL] -c does not stop it.
Is there a simple command to terminate live logging?

myNewAccount
- 569
- 1
- 6
- 19
-1
votes
3 answers
Is there a way to know what services run on a Windows server without logging in to this server?
Hi I just started working as an intern and they use Windows servers for very specific tasks (converting .docx files) that are way harder on their other servers. But now I had to make that program run as a service. The catch is that it also runs on…

Thomas
- 113
- 6
-1
votes
1 answer
Multiple Background Processes at Single Line Works in The Foreground
I want to convert an uploaded PDF file to JPG images and zip these images after convert process finishes. I use the ImageMagick library's convert command for PDF to JPG conversion.
To accomplish this, I use the && operand like this:
convert…

kubilay
- 159
- 1
- 3
- 12
-2
votes
1 answer
What `+` and `-` means in background jobs output
When I run a bunch of background jobs with
for s in {1,2,3}; do command_$s &; done;
I can see all of them with the jobs command
$ jobs
[2] running command_1
[3] - running command_2
[4] + running command_3
I know that the first…

Greg
- 149
- 1
- 1
- 6
-2
votes
1 answer
How to resume then send a program back to the background
I know I can run something in the background by adding & to it, such as tail -f log.log
I can then resume or send the job to the foregrond with fg
However, once I do this, how do I send it to the background again? Ctl-z stops the task, and Ctl-c…

Startec
- 107
- 3