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. Jeff