A 'background' process is a computer process that runs "behind the scenes" (i.e. in the background) and without user intervention. Typical tasks for using such processes include logging, system monitoring, scheduling, and user notification. Use this tag for any questions about background processes.
Questions tagged [background-process]
627 questions
7
votes
1 answer
Using semicolon to separate a background job from the following one?
Can we use semicolon to separate a background job from the following one?
$ nohup evince tmp1.pdf &; nohup evince tmp.pdf &
bash: syntax error near unexpected token `;'

Tim
- 101,790
3
votes
1 answer
When your Linux server is down, does your program stop running, or does it resume running after?
If I run a background program (runs for 3 days) on a Linux server, and whilst it is running the server goes down for an hour, after that hour (when the server is up again) will my program resume running? or will be terminated due to the server going…

user171010
- 31
1
vote
1 answer
Parrallel ongoing for each file loop?
I want to continuously monitor some log files. What I have below works if I switch the tail -F for cat $log_file. When I use -tail -F the first log file works but because its process doesn't finish it blocks the top while loop.
How can I background…

Philip Kirkbride
- 10,236
1
vote
2 answers
How to force process to work in the background even if it refuses to?
As an example:
$ vim &
[1] 19133
$ bg
[1]+ vim &
[1]+ Stopped vim
$
However, I do not want vim to stop when put in the background. Is that possible? (applies for other programs such as login and telnet too)

tildearrow
- 559
- 5
- 12
1
vote
1 answer
How to put the "yes" program into the background?
When I activate the yes program, it does not react to the CTRL+Z pause (nor to CTRL+C to stop it).
I know no other ways to run a program in the background than using CTRL+Z and then a bg.

dziadek1990
- 695
0
votes
1 answer
Background Tasks on Multicore machine?
Say I have a dual core cpu running linux.
If I start two single threaded processes (nodejs) in the background, how are they scheduled?
Can I assume that the OS will as best as it can, attempt to have each process run on different cores, or do I have…

Alan
- 145
0
votes
1 answer
Find out if a process was kicked off in the background or got backgrounded mid-run
I'm interested in Linux specifically, but an answer for other Unices would be great as well:
Does the system have a way of signaling to a process that it's been launched in the background? In other words, is there a signal I can trap or something I…

Joseph R.
- 39,549
0
votes
1 answer
how to alter program preferences to run in background rather than foreground
I have been using commands like
gedit some_script.pl & for many years.
However, I would like to force the program to automatically run in the background, so that I would get the command line back, and I don't type &.
How can I alter some setting…

con
- 109
0
votes
1 answer
process running in background but still I cannot use the command line
I suspend a running process by ctrl+Z and the bg to place process in the background but the process still running in the foreground so I cannot use the command line. How can I put the process completely in the background so I can use the command…

student6113
- 1
- 1
0
votes
0 answers
Time Machine analog for Linux
On my Apple Mac I use TimeMachine to save backups.
This is effortless and quite reliable and provides access to time-stamped historical files going back years. It is also efficient (the backups basically create full images, hardlinking to unchanged…

Milliways
- 1,378
0
votes
1 answer
launch background process, terminal waits for LF/CR before returning to command line
I have a small piece of C code that I'm trying to run in the background. When I launch the program with &, I can find the process in top or with ps, and I see the expected I/O display in the terminal or elsewhere, if piped to file or run with…

tpm1510
- 103
- 4
-1
votes
1 answer
what does backgrounding a process in Kali Linux really do?
Context
I have checked several questions about the same topic and I still get confused when they explain what a background process really is. The common answer I interpert is that:
a process that runs in the background allows you to interact with…

Can1ne
- 1