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
1
vote
1 answer

How to set timeout on a dot-net process

I have a web page that is supposed to start a long-running process. By long-running here I mean it might take an hour or so. I don't want the web page to sit there for an hour, so I create a Process object, start it up with no wait, and then return…
Jay
  • 26,876
  • 10
  • 61
  • 112
1
vote
1 answer

Can I write to a file in background?

During the execution of my script I need to write a big file to disk to store partial calculations. This file is quite big and it is not needed for the rest of the script. At the moment I need to wait for the writing to finish before I can continue…
Rojj
  • 1,170
  • 1
  • 12
  • 32
1
vote
2 answers

Equivalant in Swift performSelectorOnMainThread waitUntilDone

I wanted to translate this in swift : dispatch_async(kBgQueue, ^{ NSData* data = [NSData dataWithContentsOfURL: googleRequestURL]; [self performSelectorOnMainThread:@selector(fetchedData:) withObject:data waitUntilDone:YES]; …
Aymenworks
  • 423
  • 7
  • 21
1
vote
1 answer

iOS - trying to get app running in background indefinitely

I'm trying to get an app running indefinitely.. I'm developing an internal app, so apple approval doesnt matter. I've tried a few different things, including simulating a voip app using this…
hamobi
  • 7,940
  • 4
  • 35
  • 64
1
vote
2 answers

Dynamically loading new jobs in a SidekiqStatus container to monitor completion

I built a small web crawler implemented in two Sidekiq workers: Crawler and Parsing. The Crawler worker will seek for links while Parsing worker will read the page body. I want to trigger an alert when the crawling/parsing of all pages is complete.…
ksiomelo
  • 1,878
  • 1
  • 33
  • 38
1
vote
1 answer

bash: hit return once, run 2 commands in the background

Rather than this: $ command1 & $ command2 & $ … Is there a way to do the equivalent in bash, but on a single line of input?
Zearin
  • 1,474
  • 2
  • 17
  • 36
1
vote
1 answer

iOS setting app badge value

It is clear how to set the badge number: [[UIApplication sharedApplication].applicationIconBadgeNumber = whatever The problem is when to increment it properly. I want it to equal the number of UILocalNotifications that have fired since the app went…
Andrew Duncan
  • 3,553
  • 4
  • 28
  • 55
1
vote
1 answer

Reading Data From a BackGround Task (Windows Phone)

I need to know how I should represent accelerometer data retrieved by a background task in the UI. Is data binding an option? Can I do it the same way that I would with the code-behind pages of the UI? Can I access a variable from the background…
user3927312
  • 814
  • 2
  • 13
  • 27
1
vote
4 answers

how to kill a single background process in bash

I want to kill a single background process in bash $SCRIPT_DIR/utils/monitor.sh -f $root/save & $SCRIPT_DIR/utils/run.sh -f $save $SCRIPT_DIR/utils/Monkey.sh -f $save I want to kill monitor.sh after finishing Monkey.sh. I tried using pid but its…
1
vote
1 answer

logging a telnet session as a background process

I want to achieve the following: We have a telecommunications system which protocols all incoming and outgoing calls and makes the data acessible live via telnet. What I want to do is to run a background script on a Debian VM that is permanently…
Artur Schmitt
  • 69
  • 1
  • 4
1
vote
2 answers

Is uploading allowed in background fetch (PerformFetch)

I'm using C# (Xamarin) on iOS, but I suspect this question applies to those programming in Objective C as well. iOS 7 introduces the background "fetch" functionality which lets the app download data while it is in the background. All of the docs…
Victor Chelaru
  • 4,491
  • 3
  • 35
  • 49
1
vote
1 answer

Schedule task every 2 minutes in jailbroken iOS app

I am not one to support jailbreaking but I've exhausted all other options in the regular SDK. Is there a way to schedule a function to run every 2 minutes even while the app is in the background and the phone's screen is off? It would also need to…
Leah Sapan
  • 3,621
  • 7
  • 33
  • 57
1
vote
0 answers

Controlling current AVQueuePlayer item in background

I'm working on a walking tour that uses iBeacons and geofences. I'm trying to allow my users to plug in their headphones, close the app and get audio updates as they walk around. I have the basics of this down and can trigger audio when the app is…
nwales
  • 3,521
  • 2
  • 25
  • 47
1
vote
0 answers

Why is AVQueuePlayer able to initiate audio stream from url in background while AVPlayer cannot?

I've been testing background audio on ios triggered by location updates (iBeacons). I noticed that if I want to initiate an audio stream when my app is backgrounded it only works if I am using and instance of AVQueuePlayer. If the file is local I…
nwales
  • 3,521
  • 2
  • 25
  • 47
1
vote
1 answer

Tailing multiple files in the background with bash

I've never written anything this intense in bash. Basically, I want to run a limited number of data import scripts in parallel. To do so, I need to know when one has terminated in order to start the next. However, I'm not sure how to do this in…
Garrett
  • 11,451
  • 19
  • 85
  • 126
1 2 3
99
100