'''
Created on Aug 19, 2013

@author: huhe
'''

import simplejson as json
import re 


from main.define import Define
from lib.util import Util


if __name__ == '__main__':
    '''
    str1 = "wget Define.URL_IMAGE_LIST[0] -P Define.PATH_DOWNLOAD"
    print repr(str1)
    #str1 = string.Template("wget ${Define.URL_IMAGE_LIST[0]}".substitute(locals()))
    print eval("Define.PATH_DOWNLOADS")
    #print str1
    for i in eval("range(0, 3)"):
        print i
        
    file_json_step = Define.PATH_USNIC_JSON_LINUX + "wget_ucsm_firmware.json"    
    Util.run_test_step_list(file_json_step)
    '''
    
    print Util.get_ip_field("50.35.10.127", 3)
    