Actually, with the help of another person here we figured out what was wrong. Apparently there is a problem with the sleep() function where it interferes with the open() of the file. We have found three ways of fixing this. system(sleep 1); instead of sleep() or using fopen instead of open. I welcome your comments and thanks for the help.
Nate. -----Original Message----- From: Wert, Nathaniel J Sent: Wednesday, May 18, 2005 10:02 AM To: Perl Beginners - CGI List Subject: RE: No appending... I guess I should give a little more in depth explanation. The file and directory does exist. The names are changed to protect the innocent (I did not want to use the tmp dir). This is basically to simulate a large log file having entries written to it every second. This is a section of a larger code. Thanks. Nate. -----Original Message----- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:35 AM To: Wert, Nathaniel J Cc: Perl Beginners - CGI List Subject: Re: No appending... On Wed, 18 May 2005, Wert, Nathaniel J wrote: > open(TEMPFILE, ">>/temp/temp.big_ass_file") or die "unable to write > /temp/temp.big_ass_file:$\n"; On most Unix systems I've used, the name is usually "/tmp", not "/temp". If you're trying to work on a file in a nonexistent directory, you probably won't get very far... :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>