Skip to main content

Thread: Several scripts simultaneously accessing one file


hi,

made script batch processing brain scans (with freesurfer). have batch file stored on nfs server looks this:

code:
subject1  subject2  subject3  subject4
now script performed on several computers @ time, first marks item in use (with sed -i 's/.../...'), processes (it gets actual subject files elsewhere on server, puts them back), marks finished in list. during action batch file should this:

code:
subject1 finished  subject2 inprogress on host1  subject3 inprogress on host2  subject4

tried run , watched batch file, observed this:

code:
subject1 finished  subject2 inprogress on host1  subject3 inprogress on host2  subject4 inprogress on host1  subject5
this should not possible, there 1 script running on host1. subjects never got marked finished, although know fact finished. also, script seemed hang moments. problem simultaneous access file, , if so, can do?

post script, please.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] Several scripts simultaneously accessing one file


Ubuntu

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts