From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647621921.tru64-unix-managers.marc@archive.invalid> From: Don Newcomer Date: Thu, 17 May 2001 15:41:47 +0000 To: tru64-unix-managers Subject: CGIs X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647621921 This isn't necessarily Tru64-specific but I'm using Netscape Enterprise Server and running CGIs written in C. In particular, one CGI does a file deletion and then generates HTML code on the fly. If I run the CGI interactively, it works as it should. On the web, however, it acts as if the operations are occurring asynchronously. Sometimes the file is deleted and the correct form is displayed. Sometimes it doesn't delete the file. My guess is that, somehow, the HTML is generated and executed by the web server before the original CGI completes. Can anyone confirm or refute this? And, better yet, can you suggest a workaround? A sleep() statement would be a possibility but it's only a band-aid at this point. Thanks. ================================================================================ Don Newcomer Dickinson College Associate Director, System and Network Services P.O. Box 1773 newcomer@dickinson.edu Carlisle, PA 17013 Phone: (717) 245-1256 FAX: (717) 245-1690