NYCPHP Meetup

NYPHP.org

[nycphp-talk] system() call timeout

Jeffrey O. Stevison jeff at geeksociety.com
Wed Oct 12 12:25:25 EDT 2005


I'm more trying to know when that exact command fails rather than any  
output from the command itself.

Jeff

On Oct 12, 2005, at 10:46 AM, Tim Sailer wrote:

> On Wed, Oct 12, 2005 at 10:42:22AM -0500, Jeffrey O. Stevison wrote:
>
>> Is there a way to set a timeout value for a system("ls -l") call?  If
>> the ls command hangs for at least 5 secs I want to term the call and
>> have some return value that indicates the process has termed.
>>
>
> Not that I've found. I've been using the $dirhandle=opendir('xx');
> $filename=readdir($dirhandle); method of picking out files.
>



More information about the talk mailing list