Flushing file error

let me google that for you :slight_smile:

https://twiki.cern.ch/twiki/bin/view/Main/HowtoUseLxplus#Helpful_commands_for_AFS

that’s why I was advocating to use lxbatch in my answer to your post here:
How to connect my machine with CERN operating systems

IIRC, lxbatch will take care of all of these gritty details when writing back the results of your long running jobs.