Created
September 9, 2014 06:02
-
-
Save tlarevo/2f859980e88a9269f289 to your computer and use it in GitHub Desktop.
Primitive method of getting APN queried for a specific MSISDN
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
<?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