CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Multiple Scripts



Apr 22, 2001, 10:43 AM

Post #1 of 3 (318 views)
Multiple Scripts Can't Post

Let's say I have a text file search script and I duplicate the script into two scripts call it "search1.cgi" and "search2.cgi", and both scripts will read the same text files. Do you think it will make any different to the search performance and would it corrupts the text file?



Apr 22, 2001, 11:29 AM

Post #2 of 3 (315 views)
Re: Multiple Scripts [In reply to] Can't Post

It depends on your code/methods and how well you built the script that determines how it will preform. And in what ways would it corrupt your text files... Is your search writing to them?

Fueled By ZCom


Apr 24, 2001, 7:30 AM

Post #3 of 3 (302 views)
Re: Multiple Scripts [In reply to] Can't Post

No, the script doesn't write to the text files, but if both scripts wrting to a same log file, what should I do? Should I using file locking or something else?

The reason why I use two running scripts, because I am thinking it would increase the speed, let's say a user query first word in search1.cgi and second query will goes to search2.cgi, third query will back to I making any sense here?

Please advice,



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives