help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Running bash scripts in slow motion on purpose?


From: Dennis Williamson
Subject: Re: [Help-bash] Running bash scripts in slow motion on purpose?
Date: Wed, 30 Oct 2013 08:42:25 -0500

Add

trap 'sleep 1' DEBUG

to the top of your script. Use fractional seconds if your date supports it
or select any value. You can enable or disable the trap so it only affects
selected sections of code.
On Oct 30, 2013 7:18 AM, "adrelanos" <address@hidden> wrote:

> Hi!
>
> Is it possible to run bash scripts really slow on purpose?
>
> That would be useful for debugging purposes.
>
> I tried cpulimit -l 1 but that is still much too fast.
>
> Cheers,
> adrelanos
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]