When I tried to run the following command on the command line, I get the storage size.
curl -G -d "key=val" 'http://172.16.26.2:9005/as/system/storage'
{
"userQuotaMax" : 675048,
"userQuotaUsed" : 439191
}
If I try to run in my python script, Then, I can'not get the same data.
arg_list = curl -G -d "key=val" 'http://172.16.26.2:9005/as/system/storage'
p = Popen(arg_list, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, executable='/bin/bash')
output = p.stdout.read()
print output
Any helps would be really appreciated.
print output?