Skip to main content

Questions tagged [background-process]

A background process is a computer process that runs behind the scenes (in the background) without user intervention. Use this tag for issues regarding processes that run in the background.

Filter by
Sorted by
Tagged with
4 votes
1 answer
432 views

Understanding the meaning of the + and - signs after completion of a task run in background

I am often running multiple tasks in the background by launching my commands as follows for ...; task...; done > log 2>&1 & When my tasks are done, I will receive in the prompt a ...
Thierry Grange's user avatar
1 vote
0 answers
145 views

How to keep processes running after rebooting?

I'm running machine learning training process on Ubuntu 20.04.4 LTS. The running process is in a tmux session. The administrator told me that the server would be down during the holidays. I was ...
Chuck Liu's user avatar
  • 159
-1 votes
1 answer
73 views

Apache server unresponsive due to multiple instances of process

Good day, I have a VPS server with LAMP setup. As a couple of days I have a huge spike in process and I don't know how to investigate this cause. Here is the output of the htop command https://ibb.co/...
croppio.com's user avatar
  • 1,529
1 vote
1 answer
454 views

How to detach from minecraft server in ubuntu server [closed]

I recently got a server and am quite new to servers in general, I'm trying to keep the server running in the background while I do other stuff on the server, any commands I try just execute as ...
JumpinJac's user avatar
0 votes
1 answer
166 views

Background services on startup [closed]

My question is ideological, I want my system to be lightweight but over time I accumulate services that I need from time to time but not always. I was reading this. Why would services like postgres, ...
ataha322's user avatar
-1 votes
1 answer
214 views

Manage the dotnet process; detach, reattach and view output

On my Ubuntu Server I run the command dotnet myapplication.dll to start an application. It subsequently displays a steady stream of output logging to the screen. I would like to be able to perform ...
NOCARRIER's user avatar
  • 103
0 votes
0 answers
161 views

Regarding ffmpeg in ubuntu 22.04

I need to convert a rtsp and a rtmp link to two different UDP link at the same time using ffmpeg in ubuntu server 22.04. I need to run this as background process only. Also is there any option to ...
Mohammed Fawaz M's user avatar
0 votes
1 answer
153 views

How to start a background process in gnome-terminal automatically at the start

I want to start a background process (tail [a log file]) in each gnome-terminal automatically when the terminal is created. I've tried gnome-terminal -e "tail -f /var/log/syslog &" which ...
johnmuir's user avatar
0 votes
1 answer
177 views

Cannot get sudo to work consistently without terminal in non interactive script

I have a shell script I wrote that needs sudo access only when needed. It uses Zenity for a GUI and runs without a terminal. The script was working fine but I had one issue with it. It uses Zenity to ...
Damien Stewart's user avatar
0 votes
0 answers
94 views

Automating process that needs user interaction not working in Ubuntu using expect package

I want to automate the running of a process in Ubuntu using Expect. The process that I have asks the user to insert "ok" and then ask them to insert a password. I've created an Expect script ...
Abdulhamid's user avatar
3 votes
2 answers
1k views

Running grep via GNU parallel

How can I make searches with grep on a large number of files run faster? My first attempt uses parallel (which could be improved or other approaches suggested). The first grep simply gives the list ...
Fatipati's user avatar
2 votes
1 answer
567 views

Command dependent on background job finishing

I am trying to run a background-job that should send an email after it terminates. The background-job can run several hours and should run independent of the Shell it was started in (because SSH will ...
Marc's user avatar
  • 305
1 vote
1 answer
243 views

What is Zeitgeist Data Hub background process?

I am running Ubuntu MATE 22.10. I noticed the background process zeitgeist-datahub in htop. What is this process doing? Can I safely disable it? I found a package of the same name. https://packages....
Archisman Panigrahi's user avatar
2 votes
1 answer
786 views

How do I stop a job in the background from outputing to the terminal? [duplicate]

I ran make in the terminal for Kismet on my Pi and it's been outputting to the terminal every 10 to 15 seconds, regardless of it is being run in the background or not. I tried using CTRL+Z and running ...
themaddmaverick's user avatar
0 votes
0 answers
26 views

Run interactive program from ssh then disconnect and reconnect [duplicate]

From my laptop I'd need to start a ssh terminal to a remote desktop in which I'll run a long running program testdisk or photorec, then once I setup my selections start the data recovery. Then I'd ...
useful's user avatar
  • 1,844
0 votes
1 answer
245 views

Gnome-Software running in background and consuming RAM

Why does this newfangled Gnome-Software have to consume 300mb of my precious RAM in the background? I remember when an previous computer of mine only had 300mb of RAM total, and now this one program ...
Charles1964's user avatar
0 votes
0 answers
54 views

Black screen at login

In /etc/profile.d/ I inserted the file custom.sh which reads: ~/.start/speakers.sh & ~/.start/vpn.sh & As you can see, both files are run in the background. Why am I still experiencing, ...
Pippin's user avatar
  • 101
0 votes
2 answers
1k views

Fluidsynth Starting Automatically On Boot; Login Freezing - Connected? How to Solve?

Since switching from Kubuntu 20.04 to Ubuntu Studio 22.04 (both use KDE Plasma), I have had a strange cluster of issues. I'm wondering if they could be connected, but my main goal is to find a ...
Royan's user avatar
  • 157
0 votes
0 answers
40 views

Background scripts on Ubuntu server

I have a .sh script that runs an import of more than 6 thousand big SQL files. I'm connecting to my Ubuntu server via ssh. I want to start the script and close the connection for example. But in this ...
Ali Guliyev's user avatar
4 votes
2 answers
4k views

How to make Thunderbird mail sync in background without opening the app

How can I make thundermail sync E-mail in the background and notify of new e-mails as they arrive? Applications like Evolution have a background service that allows it to sync email even when the app ...
JackDaniels's user avatar
0 votes
0 answers
23 views

Why does ls -R1 & go to foreground [duplicate]

I am trying to let ls /usr -R1 run in the background (school assignment, I know it sounds like a dumb idea to run ls in the background). I tried running ls /usr -R1 & to run it as a job instead of ...
Irsu85's user avatar
  • 571
1 vote
1 answer
932 views

How to end a cpulimit on a process

I am utilising the very handy tool CPULimit to restrict the CPU usage of an import triggered in the cron of my Ubuntu server. Successfully limiting the process is not a problem, I am also able to ...
Doopz's user avatar
  • 131
0 votes
1 answer
502 views

How to run "Source file.sql" command from MySQL CLI in the background?

I am currently on Ubuntu 22.04. I have over 30 SQL files that creates new databases and some of them are over 10 GB. I don't want to import those files into MySQL using MySQL < File.sql, because ...
Raul Chiarella's user avatar
0 votes
1 answer
644 views

Process exits on terminal session end, even though it's a background process

I connect to my VPS using ssh. I run npm run start & to start my next.js site in the background. And everything works. As soon as I disconnect my SSH session, my site stops. How can I force that ...
Ali EXE's user avatar
  • 119
1 vote
0 answers
256 views

Undesired background compilation of Nvidia kernel module

Recently, on a fresh boot, I noticed a 100% usage of my whole CPU. Quickly browsing with htop I saw 4 cc1 process compiling something, but can't know what. So I leave a script in my home to catch all ...
Sebastián Sigvard's user avatar
0 votes
0 answers
226 views

How to run Blender as a Service?

I have a python script that continually calls blender to do some rendering with various blend files os.system('blender -b testFile.blend --python-text render -- [args]') This call will open blender ...
Harry McKenzie's user avatar
0 votes
1 answer
30 views

Does Ubuntu suppport adding running GUI Applications to background with Hotkey?

I already know how to put an already running process into background from command line but I was curious if there would be any chance to put a running GUI process into background using configurable ...
RickyLo's user avatar
  • 39
-1 votes
1 answer
393 views

How can I put a command in the background process after the command has been run?

I need to put interactive command (some values are entered from the console and then an infinite loop is running) in the background process. Since I need to enter values, I can't initially run the ...
Tetiana's user avatar
  • 117
0 votes
0 answers
442 views

get process back to screen

I was in a screen session with a python script running in the background. I terminated the screen with the exit command so when I check with screen -ls there are no sockets and with jobs I can see ...
Celdor's user avatar
  • 1
0 votes
1 answer
1k views

Stop all Localhost servers/Backround processes

so my current issue is when I go to the browser type 'localhost' or '127.0.0.1' it redirects me to a Facebook page? if there is any way to stop all servers located on localhost or kill the background ...
user avatar
2 votes
1 answer
2k views

Run a command in background, but get a non-zero exit code *immediately* when `No such file or directory`

I need to run some (unknown) command in the background like this: nohup some_command & Since such a command will run and (hopefully) complete in background, I cannot get its exit status ...
FedKad's user avatar
  • 11.5k
0 votes
0 answers
155 views

jobs shows nothing even with processes running in the background

I ran this script that runs several processes in parallel: ./train-eyecnn.sh 9 0.1 0 "key_relative_gaze" | tee "../tmp/9_0.1_0.txt" & ./train-eyecnn.sh 9 0 0 "...
Kong's user avatar
  • 1,291
4 votes
2 answers
4k views

Proper way to disable Evolution services when it's purged already

Though I have gone through quite a few threads on AskUbuntu, I couldn't find a proper way to disable these Evolution services, especially when Evolution is purged from the system already, in Ubuntu ...
Jags's user avatar
  • 2,186
1 vote
0 answers
111 views

How to find and kill specific Monitoring AGENT running on system?

I have an agent installed on my computer which works with python. I think it starts with startup but I could not find any program on startup so I decided to check running processes for python and to ...
Deshwal's user avatar
  • 113
0 votes
0 answers
63 views

Using Ubuntu Server To Refresh Google Sheets in the Background

I don't even know if this is possible, but I'm new to Ubuntu and figured this would be the place to ask. I have a few web apps on my phone that I have set up using data from a Google Sheet (using a ...
Josh Andromidas's user avatar
0 votes
2 answers
1k views

Uknown PHP script taking 100% of the CPU

There is unknown PHP script running in the background of my system that I can't find and that re spawns every time I kill it. A bit of information from ps about the process. ps -Flww -p 280378 F S UID ...
Draco's user avatar
  • 517
2 votes
2 answers
11k views

How to disconnect from OpenConnect?

I command something like this : sudo openconnect -b serverName for connect to vpn but when i want to disconnect it , the process does not kill and its alive in background. I used these commands for ...
milad salimi's user avatar
0 votes
0 answers
126 views

Where is The Minimize button script?

I'm trying to write a script to make my OS faster so I decided to limit CPU for background apps and minimized windows. There could be so many different ways to do that and I know two of them: Write ...
Reza Azimi's user avatar
2 votes
1 answer
229 views

Looking for a way to halt background tasks/create a benchmark mode

I'm using Ubuntu 20.04 and am working on performance optimisations of some CFD code. When timing my code for quick feedback as to whether some modification is beneficial, there's often quite large run-...
RL-S's user avatar
  • 163
6 votes
3 answers
3k views

MainThread unfamiliar process suddenly showing up 18.04

This morning, running top, I noticed a process I nave never seen before in my Ubuntu 18.04 laptop called MainThread, which was periodically using a lot of CPU . There was also an entry called ...
Jim Giddings's user avatar
0 votes
0 answers
57 views

Fastest way to run a program - Turn off as many other processes as possible

I have written a script to compare a few algorithms in Python, and I am timing each algorithm, to compare the total running time of each one. I wish to be as accurate as possible, that is, I want all ...
XuUserAC's user avatar
  • 101
0 votes
1 answer
329 views

Get exitcode from a background process in bash

I have a Bash script that execute a command in background, to can show a progress-bar during the command execution, this is the code: # Background command dpkg -i $DPKG_COMMAND >/dev/null & # ...
maxwatt's user avatar
  • 508
1 vote
0 answers
397 views

How to turn on vlc background play?

I want to play song in background. But when I click cross button on window title-bar vlc stop. I already tried systray icon and run as daemon process. Not working. Maybe I am doing wrong. But is there ...
Bapi's user avatar
  • 389
0 votes
2 answers
1k views

18.04: Run zenity in background or not show the terminal

A .desktop file runs some dialog boxes using zenity (more) on an Ubuntu 18.04 system. I want just the zenity dialog boxes to come up, not the terminal. I've tried setting the Terminal tag to false and ...
Ametz's user avatar
  • 1
4 votes
2 answers
3k views

Why does `kill %jobnumber` not work on stopped jobs?

I'm running a few tasks side by side on an Ubuntu 18 LTS system. So I'm switching between these jobs by running: # command & # fg # fg - I'm also using Ctrl+Z sometimes to send a running job to ...
Sollosa's user avatar
  • 143
0 votes
0 answers
796 views

Is it possible to disown a background process and then later open it in another terminal window? [duplicate]

Say you have a script that takes a while to do something, but then later requires some user input e.g. something like: #!/usr/bin/python -u import time x=0 while(x<10): time.sleep(1) x+=1 ...
T. Zack Crawford's user avatar
0 votes
1 answer
392 views

18.04.4 Open applications in background

I am using Ubuntu 18.04.4 LTS , Kernel version Linux 5.3.0-28-generic. I want the applications to open in the background whenever I click the application icons that are on the left pane. For e.g. I ...
ajay vasudevan's user avatar
0 votes
1 answer
297 views

How to store output of find from a background command

I have the following excerpt from a script for finding certain subfolders. Meanwhile a spinner indicates that something is taking longer in the background: # runs find as background task and ...
derHugo's user avatar
  • 3,366
0 votes
0 answers
102 views

Cron doesn't work properly on Ubuntu

I'm using Ubuntu 18.04.2 LTS and I need to run a program once a day, in background, let's say at 20:00. The path of my program is: /home/isola/Desktop/backup_database/backup and backup is the name of ...
Marcus Barnet's user avatar
37 votes
3 answers
36k views

Tracker process taking lot of CPU

I'm trying to understand what the different background processes are doing on my machine as this one is freezing from time to time. I have noticed that the tracker processes (there are several of them ...
Jeanba's user avatar
  • 768