Singapore Flyer

Friday, March 7, 2014

Cron job to run every second

I need a Cron job to run every second

* * * * * /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 1; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 2; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 3; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 4; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 5; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 6; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 7; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 8; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 9; /mnt/scripts/permission.sh >> /dev/null 2>&1
* * * * * sleep 10; /mnt/scripts/permission.sh >> /dev/null 2>&1
like this we need to give till sleep 59

No comments:

Post a Comment