Hi, Am 27.09.2012 um 16:39 schrieb RATH Jochen (AREVA):
> I distribute with open grid engine simulations, which are stored during > the calculations locally on the server. After the simulations are > finished, my script moves the results to a central storage manager. My > problem is, that in case of a cancelling of job with qdel, the generated > files will stay on the calculation server and will sum up, until the > drive is full. > > Is it possible, to send a set of commands, when the job get cancelled, > which will move the generated files to the central storage manager? You can submit the jobs with `qsub -notify ...` and catch the generated SIGUSR2 in the jobscript. I.e.: it should terminate the running binary, but not the jobscript it self. In the jobscript you then have the defined "notify"-time from the queue definition to copy the stuff back. Another approach could be to name the files you are interested in in a job context. Then you can check the job context in a queue epilog and copy the necessary files or even do an `rsync`. In case you are using DRMAA to submit jobs: there are some variables available for the input/output files, but this might not be enough and you have to define scripts for handling them accordingly. -- Reuti _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
