K
K
Kirill Kazakov2015-06-24 04:09:44
bash
Kirill Kazakov, 2015-06-24 04:09:44

What does this $(($RANDOM \% 10800)) cron entry mean?

There is a cron job that runs on one machine (centos) but fails on another (debian).
What does this entry mean

sleep $(($RANDOM \% 10800))
.
Pause before executing for a random amount of time , then escape and % 10800 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-06-24
@mausspb

sleep $(($RANDOM % 10800))means an arbitrary pause within 3 hours (10800 seconds).
but the slash before the percentage is most likely a mistake.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question