Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with back ground job

Former Member
0 Likes
534

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.

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.

4 REPLIES 4
Read only

Former Member
0 Likes
516

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

Read only

Former Member
0 Likes
516

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).

Read only

0 Likes
516

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,

Read only

0 Likes
516

Anybody has any clue?