I have written a perl script that parse SNMP traps from a tool and send them to messaging queue using curl.
The line of code that is misbehaving looks like this one below
$runcode=system(<the curl commands goes here>
)
the successful execution of curl should return 0 other it should return the Curl's exit code (no zero value)
But even on the successful of curl I am getting 256 in the runcode ??
Any Suggestion to resolver this?