473,473 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

launch an independant process

pch
Hello list,

I would like to launch a process (a long one: ftp, a lot of data to
check, a lot of time to do) from a page but do not want the end of the
process to return to the page.

I notice the pcntl_fork function, but need to rebuild PHP and Apache...

Does anyone knows another way to do this ?

Thanks a lot in advance for your help.
Philippe
Mar 20 '06 #1
5 1432
pch wrote:
Hello list,

I would like to launch a process (a long one: ftp, a lot of data to
check, a lot of time to do) from a page but do not want the end of the
process to return to the page.

I notice the pcntl_fork function, but need to rebuild PHP and Apache...

Does anyone knows another way to do this ?


$cmd="/long/running/script";
`echo $cmd | at now`;

C.
Mar 20 '06 #2
What about this? Just suggestion.

/* client is redirected and script continues with execution */
ignore_user_abort(true);
header("Location: /back.php");

Mar 20 '06 #3
pch
Colin McKinnon a écrit :
pch wrote:

Hello list,

I would like to launch a process (a long one: ftp, a lot of data to
check, a lot of time to do) from a page but do not want the end of the
process to return to the page.

I notice the pcntl_fork function, but need to rebuild PHP and Apache...

Does anyone knows another way to do this ?

$cmd="/long/running/script";
`echo $cmd | at now`;

C.

Does this work in PHP ? If yes, it has no effect for me...

--
Please replace lalaposte by laposte ton send me an email.
Mar 22 '06 #4
pch
ziizii a écrit :
What about this? Just suggestion.

/* client is redirected and script continues with execution */
ignore_user_abort(true);
header("Location: /back.php");

as far as I could see, the script is interrupted... to go to the
location stuff.

--
Please replace lalaposte by laposte ton send me an email.
Mar 22 '06 #5
pch wrote:
Colin McKinnon a écrit :
pch wrote:

Hello list,

I would like to launch a process (a long one: ftp, a lot of data to
check, a lot of time to do) from a page but do not want the end of the
process to return to the page.

I notice the pcntl_fork function, but need to rebuild PHP and Apache...

Does anyone knows another way to do this ?

$cmd="/long/running/script";
`echo $cmd | at now`;

C.

Does this work in PHP ? If yes, it has no effect for me...


No, it works OUTSIDE of PHP - that's rather the point.

C.
Mar 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
7
by: Christopher C | last post by:
I am using a C# winform to launch some apps for our students. Basically the user hits a button the form hides and the app is launched. When the app exits, the form is unhidden. I have a question on...
6
by: Ronald S. Cook | last post by:
How do I launch, say, Microsoft Word from within a C# Win app? Word should launch exterior to my app, of course. Is it easy to set size and position of where Word window will be placed? ...
5
by: jmsxp | last post by:
Hi all, I am in my infancy with programming, so please forgive stupid questions... I am attempting to write a C# program that will launch Trillian (well, that is just a part of the overall...
5
by: cooltoriz | last post by:
Hello there, I am not asking how to impersonate a process within C# windows application. I already know that, in C# v2.0, you can easily achieve it using ProcessStartInfo. You can run a process...
3
by: tombrogan3 | last post by:
Hi, I'm writing a service which has to monitor a database looking for new feeds (basically a few hundred thousand rows with a common id). When it finds a new feed I can either: 1) Process it on...
7
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
6
by: tempnode | last post by:
I have a problem that I can't seem to solve: I need to write a C++ app that will run off of a floppy. Basically, I will boot into DOS (from a floppy), and run my executable from the floppy. ...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.