Current time: 06-23-2024, 01:12 PM Hello There, Guest! (LoginRegister)


Post Reply 
Long time execution -exit(idle timeout), terminated by calling exit(), return code: 0
Author Message
circut_breaker Offline
Junior Member
*

Posts: 11
Joined: Feb 2010
Reputation: 0
Post: #14
RE: Long time execution -exit(idle timeout), terminated by calling exit(), return code: 0
I made it almost like you but i don't use make install, just copy compiled file

Quote:cp modules/pcntl.so /usr/lib/php5/20060613+lfs

And it's working, i can throw this process into background.

Of course i run my application from cron, it's not accessible via browser.

.dll - I still think in 2k3 server Smile


I have trouble with getting output from exec...

That's why i use shell_exec instead exec... but shell_exec don't seem working ass good as exec. I ran few tests and shell_exec was stopped... all tests with just exec completed successful.


The trouble is i'm getting only "last" row of output...

I had try:
Code:
$output = exec($cmd, $output, $return);

foreach ($output as $line) {
              mail('admin@xxx.xxx', "test$line", "test$line tes");
}

I don't get any e-mails...

But $output contain last row... i was thinking it's an array that's why i use foreach... it's console so for test purpose i wan't debug it for my e-mail.... Later i will use print_r to ob_buffer and e-mail to see what's going on....


Except getting status looks working Wink

Tell me is there any possible for fetching that output in same look as in real console ?
I need that output for debugging.

If it's more complex maybe faster will be throw output to file

Code:
comand >random_file_name.txt

And then using file_get_contents(random_file_name.txt) take output Wink
Maybe it will be faster Wink
What do You think about it ?

Regards
03-06-2010 07:35 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Long time execution -exit(idle timeout), terminated by calling exit(), return code: 0 - circut_breaker - 03-06-2010 07:35 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)