Skip to content

Instantly share code, notes, and snippets.

@codenoid
Last active October 19, 2017 10:58
Show Gist options
  • Select an option

  • Save codenoid/b87438b1015eb3d78f20f408884f4f30 to your computer and use it in GitHub Desktop.

Select an option

Save codenoid/b87438b1015eb3d78f20f408884f4f30 to your computer and use it in GitHub Desktop.
<?php
# "pilih device|freq => port"
$args = array("0|1800" => "5000", "1|1820" => "4000", "2|1730" => "3000");
foreach($args as $key => $port) {
$parse = explode("|", $key);
$d = $parse[0]; # device number
$f = $parse[1]; # frequent
shell_exec("grgsm_livemon_headless args=rtl=$d --serverport=$port -f $f > /dev/null 2>/dev/null &");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment