grep '{' $tmp/log_$mode.4.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.4.out"
grep '\[' $tmp/log_$mode.5.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 0);'
+exit (scalar(@{$j->{data}}) == 0);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.5.out"
grep '{' $tmp/log_$mode.6.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.6.out"
grep '{' $tmp/log_$mode.8.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:39:19");'
+exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:39:19");'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.8.out"
grep '{' $tmp/log_$mode.9.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:40:19");'
+exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailtime} eq "2021-09-15 12:40:19");'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.9.out"
grep '{' $tmp/log_$mode.10.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.10.out"
grep '{' $tmp/log_$mode.11.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.11.out"
grep '{' $tmp/log_$mode.12.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.12.out"
grep '{' $tmp/log_$mode.13.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 2 && $j->[0]->{emailsize} < 100000);'
+exit (scalar(@{$j->{data}}) == 2 && $j->[0]->{emailsize} < 100000);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.13.out"
grep '\[' $tmp/log_$mode.14.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 0);'
+exit (scalar(@{$j->{data}}) == 0);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.14.out"
grep '\[' $tmp/log_$mode.15.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 0);'
+exit (scalar(@{$j->{data}}) == 0);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.15.out"
grep '{' $tmp/log_$mode.16.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 2);'
+exit (scalar(@{$j->{data}}) == 2);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.16.out"
grep '{' $tmp/log_$mode.17.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.17.out"
grep '{' $tmp/log_$mode.18.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.18.out"
grep '{' $tmp/log_$mode.19.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 1);'
+exit (scalar(@{$j->{data}}) == 1);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.19.out"
grep '\[' $tmp/log_$mode.20.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 0);'
+exit (scalar(@{$j->{data}}) == 0);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log_$mode.20.out"
grep '\[' $tmp/log.21.out | perl -MJSON -e '
$l = <>;
$j = JSON::decode_json($l) ;
-exit (scalar(@$j) == 4);'
+exit (scalar(@{$j->{data}}) == 4);'
if [ $? != 1 ]; then
print_debug "ERROR: Incorrect data in $tmp/log.21.out"