Thanks! Yes I used the print trick prior to my post, but forgot to mention that is how I figured out where it is hanging. Also, yes I am using strict/warnings. I get a timeout error: Could not login to SFDC: 500 Can't connect to www.salesforce.com:443 (timeout)

The server where it works: Red Hat Enterprise Linux Server release 6.7

The server where it doesn't work: Red Hat Enterprise Linux Server release 5.11

Here is the code:

#!/usr/bin/perl use strict; use warnings; use Storable; use POSIX qw(strftime); # Parameter/host file require "host.pl"; # Environment Proxy our $http_proxyurl; our $http_proxyprt; $ENV{HTTPS_PROXY} = $http_proxyurl . ':' . $http_proxyprt; use WWW::Salesforce; our $sfdc_username; our $sfdc_password; our $sfdc_secrtokn; our $sfdc_instance; our $sfdc_soap_url; our $sfdc_versnnum; our $oper_emailadd; my $sfdc_loginatt = eval { WWW::Salesforce->login( username => $sfdc_username, password => $sfdc_password.$sfdc_s +ecrtokn, serverurl=> 'https://' . $sfdc_ins +tance . '.' . $sfdc_soap_url . $sfdc_versnnum ); }; if ($@) { warn "Could not login to SFDC: $@"; die; };


In reply to Re^2: $ENV{HTTPS_PROXY} works in one environment but not another by bigdatageek
in thread $ENV{HTTPS_PROXY} works in one environment but not another by bigdatageek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.