Tag Info

New answers tagged

3

Ask for the date in seconds: date +%s and calculate the reminder of the devision with 60 (modulo: %). If you calculate 60 minus the modulo you get the remaining seconds to the next full minute. You could change this to wait until the next full hour (change 60 to 3600). sleep $((60 - $(date +%s) % 60)) && <yourscript> To just sleep until the ...



Top 50 recent answers are included