Skip to main content

Questions tagged [background-process]

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.

Filter by
Sorted by
Tagged with
5 votes
2 answers
462 views

$ sleep 1234& $ sleep 12345678& $ %sleep\ 1234 bash: fg: sleep 1234: ambiguous job spec $ jobs [1]- Running sleep 1234 & [2]+ Running sleep 12345678 & ...
Dan Jacobson's user avatar
0 votes
1 answer
36 views

A semi-hypothetical question...i've logged into a machine remotely, set up a series of tasks along the lines of sleep 36000 ; source myjob1 & sleep 36000 ; source myjob2 & (etc.) and then ...
ionh's user avatar
  • 183
7 votes
3 answers
892 views

I want to fzf through all the pdf files in a directory, open it and release the terminal. I tried PDF_READER=okular # or evince find -type f -name "*.pdf" -print | fzf --print0 | xargs -0 $...
glacier's user avatar
  • 490
2 votes
0 answers
63 views

I use two graphical virtual terminals (sessions) on a debian desktop with KDE (the ones you switch between using chvt or Ctr-Alt-F7, F8, etc.). I notice that processes in open windows in the inactive ...
cseprog's user avatar
  • 371
4 votes
4 answers
568 views

Given this code: #!/bin/bash set -euo pipefail function someFn() { local input_string="$1" echo "$input_string start" sleep 3 echo "$input_string end" } function ...
k0pernikus's user avatar
  • 16.7k
0 votes
1 answer
83 views

A borgmatic backup command that runs for many hours: long_running_cmd &> file.txt I did Strg+Z then bg then disown to keep the command running I case my laptop goes to sleep or disconnects. I ...
Destro's user avatar
  • 15
1 vote
1 answer
90 views

I have observed the following and want to understand why: First, I run a Node server that listens on a port on a remote server using: nohup my-app & Next there are two cases: I logout of the ...
morpheus's user avatar
  • 135
1 vote
0 answers
196 views

I have here a not really fine app, partially out of my control. Sometimes it stops and I want to restart it, and some extra options. So, if it exists, I want to start my script. Poor man solution ...
peterh's user avatar
  • 10.5k
0 votes
2 answers
104 views

I tried this simple test ping [SOME IP] &;ls expecting the output of ping to overlap with the listing. Instead, I got an error: bash: syntax error near unexpected token `;' It does not help ...
Peter Bill's user avatar
0 votes
0 answers
117 views

When running a long-running command in the background over SSH from a non-interactive shell script, I noticed the process continues running on the remote machine without using nohup, disown, or ...
phip1611's user avatar
  • 101
2 votes
2 answers
138 views

I tested the following with both bash and dash, and it seems to reliably hang: [ -p pipe ] || mkfifo pipe i=0 while [ $i -lt 10 ]; do <pipe cat & : $(( i+=1 )) done # sleep 1 echo hello ...
Pablo Repetto's user avatar
0 votes
1 answer
146 views

I am very new to linux and I need some help. I am trying to put blockchain node processes on the background so that they run without my being logged in. I am using systemctl to run my process in the ...
tonymasek's user avatar
2 votes
1 answer
363 views

Considering the following script: if [[ -z "$DOWNLOAD_ONLY" || "$DOWNLOAD_ONLY" = *conditions* ]]; then function get_condition { curl -s "https://conditions.com" | ...
m26a's user avatar
  • 131
0 votes
1 answer
657 views

I have tried almost every solution on Stack Exchange (except for nohup; it seems like that is not an ideal loophole), but Systemd still kills my background processes. I also tried starting a Tmux ...
aneeqaf's user avatar
3 votes
0 answers
200 views

I have a Debian 12 (bookworm) host where I run three VMs using QEMU / KVM. To simplify VM management, each VM has a QEMU monitor socket. These sockets are /vm/1.sock, /vm/2.sock and /vm/3.sock. Among ...
Binarus's user avatar
  • 3,961

15 30 50 per page
1
2 3 4 5
44