[GE users] Cleaning scratch files.

Baudilio Tejerina tejerina at chem.northwestern.edu
Thu Jun 29 15:12:14 BST 2006


Chris,

Thanks for the alternative. Yes, I am using C shell. I'll take a look  
at it.

Baudilio



On Jun 29, 2006, at 8:39 AM, Langston, Chris wrote:

> 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
>
>

---------------------------------------------------------------------
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