批量脚本按无线配置文件名称搜索接口名称

时间:2016-03-07 19:18:53

标签: batch-file scripting

我想编写一个脚本,将无线接口的名称放入变量中,并通过它所连接的SSID找到该接口。我有:

SELECT acct.account_no AS "PARENT ACCOUNT",
  ant.first_name||' '||ant.last_name AS "ACCOUNT NAME",
  bgs.rec_id2 AS record_type,
  bgs.current_bal
FROM group_t grp
JOIN bal_grp_sub_bals_t bgs ON bgs.obj_id0 = grp.bal_grp_obj_id0
JOIN account_t acct ON acct.poid_id0 = grp.account_obj_id0
JOIN account_nameinfo_t ant ON ant.obj_id0 = acct.poid_id0
WHERE grp.poid_type='/group/sharing/discounts'
AND bgs.rec_id2 not in (1000203, 1030001, 1000303, 1000306)
AND ant.rec_id = 1
ORDER BY "PARENT ACCOUNT";

如果只有一个wifi适配器,这是有效的,但是如果我想让它做一些像“where Profile = SSIDNAME”那样的东西

1 个答案:

答案 0 :(得分:1)

class Payment_gateway_2checkout extends CI_Driver {
var $table = '2checkout';

public function __construct()
{

    ci()->load->config('payment');

    $config = ci()->config->item('2checkout');
    print_r($config);
    foreach ($config as $k => $v)
    {
        echo "$k - $v<br>";
        $this->{$k} = $v;
    }
    echo "SID = '$this->sid'";

    var_export($this);
    exit;       
}

基本上不是“where”子句,它只是一个双循环,首先搜索SSID,然后搜索命名接口