[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limiting the CPU time allowed

"A. Roubicek" <aro@cdc.noaa.gov> writes:
> Hi JD, thank you for your reply,
> I am sorry, I was not clear. I mean that "if the job takes more than
> certain amount of CPU time, it should be killed". Is there any way to do
> it from within IDL? Some applications have an option in the calling 
> command to set this kind of limit.

If you are running under Unix you can set a CPU processing limit.
Under csh, you would do "limit cputime nnn" where nnn is the number of
CPU seconds.  You would do this in the shell *before* invoking your
IDL script.  Hopefully you can use this, or else the equivalent in
your shell.


Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response