Z
Z
ZaraMc2017-09-10 08:51:07
linux
ZaraMc, 2017-09-10 08:51:07

How to make a script run loop in screen?

Hello.
In screen, you need to loop one script so that it restarts every 30 minutes.
Googled and found only this:

while true; do
  ./usr/local/new/new.sh
  sleep 10
done

But this command doesn't work. Work in the console.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2017-09-10
@POS_troi

In the first 30 minutes it is "1800"
In the second, such things are done through cron, if you need the output of the script, then redirecting to a file will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question