This is how you create an infinite loop in bash to run a piece of code perpetually at pre-defined intervals.����́A�������[�v���쐬�����@�ɂ‚��Ă�bash�̍�i�̃R�[�h�����s����ɂ͎��O�ɒ�`���ꂽ�Ԋu�Ő₦�ԂȂ��B

 #!/bin/bash while [ 1 ] do         # Your code goes here          # Modify sleep time (in seconds) as needed below         sleep 2 done �� �I / bin / bash���Ȃ���[ 1 ]�́� ����ύX���ăR�[�h�������ɐ������ԁi�b�P�ʁj �A�K�v�ɉ����Ĉȉ��̐���2���� 

For example I used this code to write a bash script to�Ⴆ�΁A���A���̃R�[�h���������߂Ɏg�p�����bash�X�N���v�g�� monitor long running mysql queries MySQL�̃N�G�������s���ă��j�^�̒��� .�ł��B