Skip to content

Instantly share code, notes, and snippets.

@luanlmd
Created December 3, 2010 18:55
Show Gist options
  • Save luanlmd/727366 to your computer and use it in GitHub Desktop.
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
#!/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