[GE users] Cleaning scratch files.

Langston, Chris Chris.Langston at aa.com
Thu Jun 29 14:39:23 BST 2006


In bourne and korn (my favorite) shells you can use the trap command.
 
  trap 'rm -f tmpFile' EXIT

By trapping EXIT signal, you can pretty much ensure that the temp files
will get deleted no matter how the script exits.

The C shell uses onintr but I'm not familiar with its usage.


Cheers,
Chris

-----Original Message-----
From: Baudilio Tejerina [mailto:tejerina at chem.northwestern.edu] 
Sent: Wednesday, June 28, 2006 5:53 PM
To: users at gridengine.sunsource.net
Subject: [GE users] Cleaning scratch files.

Hi,

If in a parallel job, where several scratch files are created in the  
respective local-node disks, the job is deleted (qdel), the scratch  
files remain there. Is there any way to have 'sge' taking care of  
them (automatically removed them)?

I've tried by inserting the appropriate 'rm' statement in the  
executing script but, these only work if the jobs successfully  
finish, obviously.

Thanks for any help anyone might bring.

Regards.

Baudilio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list