## Run the Curl command ## my $restURL = $opt_ref->{restURL} . $opt_ref->{pagingURL}; say "DEBUG: \$restURL: \]$restURL\[" if $cfg{debug} or $cfg{test}; my $cmd = "$curlCommand -X $opt_ref->{method} $restURL"; my $results = cmd_wrapper( $cmd, $opt_ref, $info_ref, $cfh{csv_export}, \@rpt_hdr, 1 ); say 'DEBUG: $results: ', Dumper $results if $cfg{debug}; #or $cfg{test} > 1; $info_ref->{name} = $?; $info_ref->{primary} = $cmd; $info_ref->{status_msg} = $results; #=pod # Uncommented I see results, Commented out cmd_wrapper seems to hang. ## CASE: Connection issue if( $? == -1 ) { # WARN: Will this still work now that I'm calling cmd_wrapper()??? $info_ref->{entry_level} = 'DEBUG'; $info_ref->{status} = 'runCurl connection failed'; csv_log( $opt_ref, $info_ref, $cfh{csv_export}, \@rpt_hdr, 1 ); return; #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< RETURN } #=cut