let me google that for you
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.