Questions tagged [background-process]

65 questions
56
votes
2 answers

Differences between " & disown" and "nohup & disown"

This is my understanding about the usage of &, disown and nohup: : runs the process within the Terminal's current bash instance, in the foreground (i.e. the process is listed as a bash foreground job and stdin, stdout and stderr are still…
kos
  • 35,535
  • 13
  • 101
  • 151
33
votes
3 answers

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 as you can see on the screenshots) take a lot of…
Jeanba
  • 708
  • 1
  • 6
  • 12
16
votes
5 answers

Shorten or merge multiple lines of `&> /dev/null &`

Every time starting the machine, I run the following program: $ cat start.sh #! /bin/bash google-chrome &> /dev/null & lantern &> /dev/null & xdg-open . &> /dev/null & emacs &> /dev/null & code ~/Programs/ &> /dev/null & xdg-open…
AbstProcDo
  • 2,811
  • 6
  • 29
  • 56
7
votes
2 answers

How can I make firefox run in the background like chromium?

A known feature in Chromium is the option to make it run in the background, which makes it easier to open . Is it possible to do the same with firefox (and other applications)?
a3k
  • 175
  • 1
  • 8
6
votes
2 answers

How can I run a command at the background without ampersand (&)?

How can I run a command at the background in Bash without ampersand (&) at the end of a command? Update: I want to do it so I can do while inotifywait -e modify app.py; do killall -9 python; python app.py &; done, but that isn't possible because of…
wb9688
  • 1,417
  • 1
  • 17
  • 29
6
votes
3 answers

How to start Google Chrome in background on boot?

How can I start Google Chrome at boot in the background, i.e. not opening an entire window?
WhatTheBuck
  • 597
  • 1
  • 4
  • 16
6
votes
3 answers

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 Privileged Cont. I recently installed nordvpn, but…
5
votes
1 answer

Background service on Ubuntu Touch

Is it possible to create a background service with the current Ubuntu SDK? Its hard to find any information apart from couple of conversations on some mailing lists. Greetings Ben
Ben
  • 151
  • 2
5
votes
3 answers

How to run Thunderbird in background and pop up notifications for new e-mails?

Recently installed Ubuntu 12.04 and configured Thunderbird email client. But seems like the email client is not working in background (like Rhythmbox). Need to keep running that like other foreground application to get mail notifications. Is there…
kishoredbn
  • 311
  • 2
  • 5
  • 12
5
votes
5 answers

BASH Script hangs after some processing on Ubuntu

I have been running below script on a Red Hat server, and it works fine and finishes the job. The file I am feeding it, contains half a million lines in it (approximately 500000 lines), and that's why (to finish it faster) I have added an '&' at the…
Ibraheem
  • 63
  • 7
4
votes
1 answer

Start a screen session and run a script without attaching to it?

I'm trying to write a script to: Start a new screen session Run some program or script within that new screen session Detach from the screen session, while the program from step 2 may still be running in there. If the program from step 2 finishes,…
RocketNuts
  • 347
  • 3
  • 4
  • 15
4
votes
4 answers

How to execute a task in background?

Is it possible to run a task or script started from terminal at the background?
Anandu M Das
  • 2,145
  • 11
  • 28
  • 40
4
votes
2 answers

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 is closed. Thundermail for me doesn't receive…
4
votes
2 answers

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 MATE 21.04. These services are not listed under…
Jags
  • 2,126
  • 2
  • 19
  • 37
3
votes
2 answers

Run another command when my script receives SIGKILL signal

Suppose I run a script $ nohup ./myscript /dev/null 2>&1 & and then kill it $ pkill myscript How can my script be designed so that when it receives the SIGKILL signal, another command is run?
user123456
  • 2,348
  • 5
  • 31
  • 53
1
2 3 4 5