ok, I have a script running see cowzilla in my sig that will use cURL to download a xml file and store in a cache file then parse the stored file. Recently I added a line of code to create a unique cache file name every time the script is run because the old ver just used the same file name for each instance the script was run.
My question is weather or not that line was needed or advisable. If there are more than one instance using that script will the the second instance of the script wait for the first instance to run or does it will on unix to decide who gets to write/read/edit the file? My other question is weather or not having unique cache file names will actually speed up the script when multiple users are using because the process won't have to wait for another process to use the file.
I haven't really check online for the answer, but none of my reference books address this issue.
My question is weather or not that line was needed or advisable. If there are more than one instance using that script will the the second instance of the script wait for the first instance to run or does it will on unix to decide who gets to write/read/edit the file? My other question is weather or not having unique cache file names will actually speed up the script when multiple users are using because the process won't have to wait for another process to use the file.
I haven't really check online for the answer, but none of my reference books address this issue.