Skip to main content
added 34 characters in body
Source Link
goldilocks
  • 90.1k
  • 33
  • 212
  • 272

Easy way to repeat a job from crontab with an interval less than one minute (20 seconds example) :

crontab:

          • script.sh

script.sh: #!/bin/bash

type your commands here.

sleep 20

retype your commands here.

sleep 20

retype your commands here.

#!/bin/bash >>type your commands here. sleep 20 >>retype your commands here. sleep 20 >>retype your commands here. 

Easy way to repeat a job from crontab with an interval less than one minute (20 seconds example) :

crontab:

          • script.sh

script.sh: #!/bin/bash

type your commands here.

sleep 20

retype your commands here.

sleep 20

retype your commands here.

Easy way to repeat a job from crontab with an interval less than one minute (20 seconds example) :

crontab:

          • script.sh

script.sh:

#!/bin/bash >>type your commands here. sleep 20 >>retype your commands here. sleep 20 >>retype your commands here. 
Source Link

Easy way to repeat a job from crontab with an interval less than one minute (20 seconds example) :

crontab:

          • script.sh

script.sh: #!/bin/bash

type your commands here.

sleep 20

retype your commands here.

sleep 20

retype your commands here.