Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $application = 'spotify';
- $kill = exec('pidof '.$application);
- $minutes = 120;
- exec('clear');
- echo "All set ready to go! \n Going to quit ". $application ." in ". $minutes ." minutes...\n";
- while($minutes != 0)
- {
- $minutes = $minutes - 1;
- sleep(60);
- echo $minutes." minutes left \n";
- }
- exec('kill '.$kill);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement