I need to execute sleep command but i dont know the definite time.
Let me put my req:
I am running one shell script and this script creates some lock file in temp dir ...now in my script i want one function to go into sleep mode till this lock file exists..one lock file gone that function should execute...
so can anyone tell me how can i put sleep command in some kind of loop..
This app helps you sleep better. Sleep as Android is an accelerometer-based sleep cycle tracker app that includes a nice assortment of helpful sleep aids, including lullaby mode, sleep noise recording, lucid dreaming detection audio and a captcha test to see if you are actually awake. Perhaps even more intriguing is that based on your sleep cycles, it knows just the right time to wake you up.