Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: i2mc
  • Order by date
  1. i2mc

    CGI not starting with new page after POST

    Not enough code provided to diagnose. Please post the entire program if not much longer than the above sample. When you say "the script prints the nested IF statement on the same HTML page after the user gets the data." do you mean that the user sees the CODE (implies problem with...
  2. i2mc

    Reading very large files in Perl

    It certainly shouldn't be reading the whole file at once - unless of course you've set slurp mode by $/=undef; somewhere in your earlier code? Then it would crash OK I gather you're just swapping around the order of fields in the file yes? Are you piping this into another process? Is there any...
  3. i2mc

    Sometime PERL only manages to partially write a file? Help!

    "Note: Under certain conditions the READ program can return a blank file, ..." and hence if it (your program) then goes on to process the file and write the new (blank) one back to disk you now have a disappearing database. I think you've just proved me right, not wrong ;-) Anyway...
  4. i2mc

    Sometime PERL only manages to partially write a file? Help!

    <I>I currently DO NOT have &quot;$|=1;&quot; anywhere in my coding...!?!? Should I?</I> Are you writing a CGI script? If so, $|=1 allows data to be flushed out to your client's browsers faster (depending on the httpd server, apache on win32 doesn't support this properly yet). It isn't relevant...
  5. i2mc

    Sometime PERL only manages to partially write a file? Help!

    &quot;Would that have any effect on the first persons update/reading of the file?&quot; YES. If you are on a unix system - why not use flock which allows for shared locks (read) and exclusive locks (write) etc. If you are using file locking then obviously every read / write request has to...
  6. i2mc

    Sometime PERL only manages to partially write a file? Help!

    A close failure often (but not always) indicates a disk space problem (which of course could be temporary and hence why your code may only fail once a month). The thing to do is to check the return values from ALL your file system commands and record any errors in a log file if you don't want...
  7. i2mc

    Sometime PERL only manages to partially write a file? Help!

    You say &quot;the software is being run on a Unix box by hundreds of people&quot; - sounds like a possible file locking problem? Perhaps your locking scheme is faulty and 2 processes are writing to the file at the same time? Do you check the return error codes for ALL your file operations -...

Part and Inventory Search

Back
Top