Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thanks, Eric for taking a look at this.

I had earlier tried that, when I do this:

my $trick_my_box_script; my $base_path = '/home/hesco/sandbox/EC2'; my $build_script = 'build_server.sh'; open('USER_DATA','<',"$base_path/$build_script") or die "Unable to ope +n $base_path/$build_script: $! \n"; while(<USER_DATA>){ $trick_my_box_script .= $_; } close(USER_DATA); my $user_data = encode_base64($trick_my_box_script);
Then I get errors which look like this:

hesco@marcus8:~/sandbox/EC2$ time perl ec2_faxserver.pl $VAR1 = bless( { 'errors' => [ bless( { 'message' => '500 read failed: Connection reset by peer', 'code' => 'HTTP POST FAILURE' }, 'Net::Amazon::EC2::Error' ) ], 'request_id' => 'N/A' }, 'Net::Amazon::EC2::Errors' );
That shell script is only 7.2k, well within the 16k limit. Any idea why it would be rejected like this?

-- Hugh

if( $lal && $lol ) { $life++; }
if( $insurance->rationing() ) { $people->die(); }

In reply to Re: Net::Amazon::EC2 loses pound-shebang when base64'd by hesco
in thread Net::Amazon::EC2 loses pound-shebang when base64'd by hesco

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-03-28 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found