Skip to content

Instantly share code, notes, and snippets.

@tlarevo
Created September 9, 2014 06:02
Show Gist options
  • Save tlarevo/2f859980e88a9269f289 to your computer and use it in GitHub Desktop.
Save tlarevo/2f859980e88a9269f289 to your computer and use it in GitHub Desktop.
Primitive method of getting APN queried for a specific MSISDN
<?php
$command = 'jruby'; // Jruby is the command we use to run the script file in future we'll improve app so it can be invoked without jruby
$path = ' /data01/HLR_CLI/get_apn.rb '; // path to the script
$arg_msisdn = '94787423363'; // assign the required msisdn
$apn = shell_exec(command + path + arg_msisdn); // execute 'shell_exec' command with given script path and msisdn as the argument
echo $apn; // print the apn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment