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 these processes include logging, system monitoring, scheduling, and user notification.

A is a background-process.

3176 questions
35
votes
2 answers

How To Properly Update A Widget In Android 8.0 - Oreo - API 26

Let's say I have a widget for an app that has targetSDKVersion set to 26. This widget takes between 100ms and 10s to update. Most of the time under 1s. Before Android O, if onUpdate() was called on my AppWidgetProvider, I could launch a background…
Justin
  • 3,322
  • 2
  • 22
  • 37
35
votes
2 answers

DbContext for background tasks via Dependency Injection

I am probably not thinking in the right direction. I am fairly new to Dependency Injection and ASP.Net Core. I have an ASP.Net core website, and one of the tasks is to import data from an excel sheet to a database that a user will upload. The excel…
34
votes
1 answer

Running Python Script as a Windows background process

I have been trying to code a python script which reads data from a serial port. It worked well from the command line but I need it to run as a background process without any command line interface. The script has a while loop which reads the next…
Vikas D
  • 542
  • 1
  • 5
  • 12
33
votes
2 answers

How Nike+ GPS on iPhone receives accelerometer updates in the background?

The new Nike+ GPS application for iOS 5 is able to process accelerometer events in the background (thus allowing for indoor treadmill tracking). How is this possible? When I put my application in background, it ceases receiving events. I use the…
kyrpoff
  • 331
  • 1
  • 4
  • 4
32
votes
7 answers

Ruby on Rails: How to run things in the background?

When a new resource is created and it needs to do some lengthy processing before the resource is ready, how do I send that processing away into the background where it won't hold up the current request or other traffic to my web-app? in my…
Stefan
  • 9,289
  • 7
  • 38
  • 46
32
votes
2 answers

Running http-server in background from an npm script

How do you start http-server in the background from an npm script so that another npm script, such as a Mocha test using jsdom, can make an HTTP request to http-server? The http-server package was installed with: npm install http-server…
Dem Pilafian
  • 5,625
  • 6
  • 39
  • 67
32
votes
5 answers

iOS Background Fetch Not Working Even Though Correct Background Mode Configured

My app has background modes enabled with Background Fetch checked and I validated the plist includes the appropriate fetch mode. I have also configured the interval as follows: func application(application: UIApplication,…
a432511
  • 1,907
  • 4
  • 26
  • 48
32
votes
3 answers

On Android, what's the difference between running processes and cached background processes?

On Android, when I look into "Setting" -> "App", under the tab "running", I can see the memory is cut into to parts: "used memory" and "memory free", also the applications are either put into "used memory", or "memory free". The applications in…
JackWM
  • 10,085
  • 22
  • 65
  • 92
30
votes
2 answers

run Mac Chrome with command line arguments as a background process

I have 2 aliases on my .bash_profile file containing: alias chrome="/Applications/Google\\ \\Chrome.app/Contents/MacOS/Google\\ \\Chrome" alias chromex="chrome --disable-web-security" but when running, it opens up Chrome but keeps holding the…
zanona
  • 12,345
  • 25
  • 86
  • 141
28
votes
6 answers

how to find whether a script run as a nohup finished or not?

I tried running a script using nohup like, nohup script.sh & When I tried ps -ef | grep "script.sh" I couldn't find it there except for the grep which is being run with that string as a parameter. Am I doing it right?. Does this mean that the…
learner135
  • 357
  • 1
  • 4
  • 8
26
votes
5 answers

How to constantly run Python script in the background on Windows?

I have created a script that moves files from one folder to another. But since the original folder is the Downloads folder I need it to always run in the background. I also have a standard Batch file that looks something like this: @py…
Thanos Dodd
  • 572
  • 1
  • 4
  • 14
26
votes
6 answers

PHP exec() as Background Process (Windows Wampserver Environment)

I'm trying to setup a php trigger file that will set off a background process. (see this question) I'm doing this on a Windows Wampserver environment. So for example I have trigger.php that runs the exec function that calls for my…
Emmanuel
  • 4,933
  • 5
  • 46
  • 71
26
votes
3 answers

iOS application executing tasks in background

I was wondering if I could send some webservice calls while my application is in the background. How does skype do it? Even if I press the home button my call stays connected.
Qamar Suleiman
  • 1,228
  • 2
  • 18
  • 31
26
votes
6 answers

Up-Sync and Down-Sync in Android?

I am working on a Point of Sale application that needs to be very good syncing mechanism. We have Magento Database.The android device have SQLite local Db. Now we need to sync in the following way: Local ------Sync To---------------> Server (Up…
25
votes
4 answers

How to execute background task when Android app is closed / set to background?

My Android 4+ app is connected to a custom web service that is used to sync data every few minutes. To make sure, that the online data is always up to date, I want to trigger the sync when ever the app is closed / send to background. Under iOS this…