Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20040124212204.2386.qmail@web41412.mail.yahoo.com> Date: Sat, 24 Jan 2004 16:22:04 -0500 (EST) From: kaiduan xie Subject: strange thing for execlp() function To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Hi,all, I just want to use execlp to invoke another program from a program. It works on Linux, but it stucks on Cygwin. Acutally, this is a very very very simple program: #include #include #include #include #include int main() { pid_t pid; printf("Hello, cygwin!\n"); if (execlp("/home/kaiduan/test2.exe", "test2.exe",(char *)0) < 0) printf("Error is %s\n", strerror(errno)); } I also added current directy to PATH, but it still sucks. Anything wrong? Thanks kaiduan ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/