From: Patricia Hinman <[EMAIL PROTECTED]> > I just wrote a script that reads yahoo directories, > and writes to a temp txt file the portion of > direcetories it's currently working with. Then copies > that temp file to a completed log file, and grabs the > next subcatagory to work with. It continues till no > more urls are given to fetch. > > Sometimes the output for the log file is correct and > sometimes it's partial. I'm wondering if someone else > runs the script at the same time it might chop up the > log file. > > Do I need mysql to make the output constant, and > available for all users. Or does the server lock the > log and temp file automatically while it's executing.
If you do not need to search throught the items I don't think mysql is a good fit. You either have to lock the files (see perldoc -f flock and perldoc perlipc) or make sure each instance of the script creates a separate log and temp file. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
