Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ivansabik
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivansabik/066c4738658793461506 to your computer and use it in GitHub Desktop.
Save ivansabik/066c4738658793461506 to your computer and use it in GitHub Desktop.
Command line periodic script with PHP
#!/usr/bin/php
<?php
while(true) {
sleep(5);
echo 'aufgewacht' . PHP_EOL;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment