background-process

PHP Background Processes

I'm trying to make a PHP script, I have the script finished but it takes like 10 minutes to finish the process it is designed to do. This is not a problem, however I presume I have to keep the page loaded all this time which is annoying. Can I have it so that I start the process and then come back 10mins later and just view the log file ...

Is BITS still a good background update technology?

One of my hobby applications uses a SQLite back end to store the application data. The application is setup so that the user can click the typical "Check for Updates" button, which will query a webservice to see if an update is available. If it is, the user clicks the "update" button and downloads a the new database (via HTTP) which then...

Is there any system level background queue process in iPhone?

I need to save a big file, sometime it takes a very long time to finish, user might just close the application. I am wondering whether the iPhone SDK could take over the unfinished big task. Appears iPhone's own mail system could do background send. I prepared a email, click send, then close the mail app immediately. In home page, aft...

Need a background process. Thread?

Hello, I need a background process to run every minute or so. I do not want this process to interfere with the responsiveness of the rest of the app. Would this be a good candidate for a thread? If so, how would you suggest I set up the thread - in particular, what classes/methods would be good to look into? ...

trigger a script when mailbox recieves mail?

I want to process a particular mailbox when it receives mail, I know I could have cron check every n minutes for any mail, but wondering if there's a way to "listen" for mail rather than continually polling. ...

Are PHP processes called via AJAX cancelled on "ESC"?

If I do an AJAX call, would the AJAX call be canceled if the user pressed "ESC" or leaved that page? If the AJAX call gets canceled, would my PHP script continue to run until it finished what it was doing (provided time limit doesn't get reached or any other server configuration stops.), or would that process get killed at the same time...

Message Queues in Ruby on Rails

What message queues are people using for their Rails apps and what was the driving force behind the decision to choose it. Does the latest Twitter publicity over their in house queue Starling falling down affect any existing design decisions. I am working on an app that will need a message queue to process some background tasks, I haven...

Dump php system command output to a file

Hello all, In the php system command we use the following system("ffmpeg -i test.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_file.flv 2>&1 &"). Please explain the usage of the above mentioned system command. What does '2>&1 &' stand for ? I want to dump the process details to a file how do I do that ? Thank you very ...

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 model: class User < ActiveRecord::Base after_save :background_check protected def background_...

Run lynx -dump in background?

I have a bash script mystuff containing a line like lynx -dump http://example.com >tmpfile and the script works fine, including this part, except when I run it non-interactively: $ ./mystuff & [1] 3712 $ jobs [1]+ Stopped The job is stopped. I find that lynx is the culprit. Even running this command directly from the bash prompt ca...

How to make a Linux Service that Accepts Commands via Web Server?

I need an application to be running in the background on my web server, but I need to be able to start/stop the application with root privileges. In order to do this, I want to have a service running that has root privileges, so that it can kill the application, and start it up again if need be. Finally, I need to be able to send the s...

(RAILS) Looping a Custom Rake every 2 mins, Bad Idea? Better way to implement?

I've currently created a custom rake file that does the following: 1.) Checks an External Feed for "NEW" Items 2.) For each new item in the feed array,it updates my Database with a new record 3.) I've currently got it on a WHILE loop. The while loop has an (@loopcheck) instance variable that is set to true initially, and if any ex...

Multiple Uploads to Amazon S3 from Ruby on Rails - What Background Processing System to Use?

I'm developing a Ruby on Rails application that needs to allow the user to simultaneously upload 16 high-quality images at once. This often means somewhere around 10-20 megabytes (sometimes more), but it's the number of connections that are becoming the most pertinent issue. The images are being sent to Amazon S3 from Paperclip, which ...

Can an ASP.NET page do some of its processing after the page finishes loading?

I have an ASP.NET page that is taking too long to load. A little testing shows that the server side logging is taking a fair chunk of time and (because the user never needs to see the logging results) I want to delay it until after the page has loaded. Is there a simple way to do this? I've tried placing it in the page's Disposed event...

tomcat background threads

Hi, I have a tomcat 6.20 instance running, and would like to send an email via a background thread to prevent the email sending function from blocking the request. Is there any way I can execute the thread in the background, while still allowing normal page flow to occur. The application is written in ICEfaces. Thanks. ...

Visual Studio Bring Background cmd.exe to Foreground

Is it possible to rise a cmd.exe processes from the silent background mode to the visible foreground so I can LOOK at them? Problem Background: I'm using VS2008 working with a very large solution containing C#, C++, and Fortran. Occasionally (a few times a day) when building my project the build hangs and does not allow me to do anythin...

Responding to events while application is not in focus.

I am having trouble writing a program that I want to be active always. I wrote code on keydown to do something, but when form1 is minimized or in tray keydown event does not response. How can I get my application to respond to keyboard events even when it is not in focus? addition : its window app , and lang is c#.NET , ...

How to "fork" a video conversion process into background, in php?

I have a batch flash upload script, that uploads video files to a dir. Simple. After the upload completes, it creates a mysql record for that file, and moves on to the next file in the queue. Just before it does that, I want it invoke a background process that will convert the uploaded avi avi file to an ipod compatible mp4 file, as wel...

how to run my application in background in iphone?

i want to run my timer in background even when app is not running.because i want to get gps cordinate of the user after some time interval.waht is the method to do this? ...

Android - using background service

I have a mix-case IDL service that I'm using in 2 ways: The service will spawn a thread and make a network call to grab some XML content on Activity's behalf. The content is return back to the Activity through client's IDL that defines callback methods If user chooses notification option then service creates a Timer that gets executed ...