Hi Mario,
> So right now we have:
>
> CREAM sandbox -> WN /home/user/xxxx -> job execution -> stageout
>
> How I would like this to be:
>
> CREAM sandbox -> WN /home/user/xx -> move stuff to /scratch/xxxx -> job execution -> stageout -> clean up /scratch
You could put scripts cp_{1,2,3}.sh in $GLITE_LOCAL_CUSTOMIZATION_DIR
in which you let the job change to a scratch directory and have that
cleaned up when the job ends.
Check the example job wrapper I sent to the list earlier today.
Beware: if the job is killed, no cleanup will be done, so you also
need to set up a cron job to deal with orphaned scratch directories.
|