Processes pid

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
user___
Forum Contributor
Posts: 297
Joined: Tue Dec 05, 2006 3:05 pm

Processes pid

Post by user___ »

Hi guys,
I need a script that will set the order of the execution of some processes. I have some execs but I execute them in the background and they depend on each other. Unless they are executed in order the program crashes. Is there any possibility of doing that in Php with pid?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Processes pid

Post by VladSun »

OS?
There are 10 types of people in this world, those who understand binary and those who don't
user___
Forum Contributor
Posts: 297
Joined: Tue Dec 05, 2006 3:05 pm

Re: Processes pid

Post by user___ »

Debian Stable
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Processes pid

Post by VladSun »

;) I've already answered you in your post:
"You may try to execute it in a single command - something like this

Code: Select all

exec("(process1 && process2) &")
"
viewtopic.php?f=1&t=76522&hilit=+ffmpeg

process1 is executed, then process2

Is that what you are looking for?
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply