2007 Apr 13 3:11 AM
Hello experts,
I have one background job which generates a text file and place it in a FTP folder.
When one user runs this job its working fine. But,
When two users run <b>the same background job at same time,</b> then i get trouble with my output file as the data is mixed up.
How to avoid this! Appreciate quick response.
2007 Apr 13 3:44 AM
hi!..
copy the text file on your desktop and then upload it, it'll now not show any problem,just try it out.
regards
anjali
2007 Apr 13 3:44 AM
Have each run of the job create a unique file OR when a user starts a job, create a "marker" file that prevents all other runs of the same prg from executing until the marker file is deleted.
The deletion of the marker file would need to be the last step of the prog then. This would allow the second user to run the prog later (after the first user is done).
2007 Apr 13 3:49 AM
Hi John,
i need to create the output file with same name so i go for secind solution.
But, i dont understand "marker " file. Could u plz elaborate little on What is marker file and how to create/delete.
Thanx,
2007 Apr 13 5:11 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |