Created
December 3, 2010 18:55
-
-
Save luanlmd/727366 to your computer and use it in GitHub Desktop.
Set limits for transmission if there is another PCs in the Network or... not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php5 -q | |
//require https://gist.github.com/725875 | |
<?php | |
while(true) | |
{ | |
$alone = shell_exec('./aloneInTheNetwork.php'); | |
if ($alone == 'true') | |
{ | |
echo 'go go go!'; | |
echo shell_exec('transmission-remote localhost:9091 -AS'); | |
} | |
else | |
{ | |
echo 'setting limits...'; | |
echo shell_exec('transmission-remote localhost:9091 -as'); | |
} | |
sleep(10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment