Sandal sez he is seeing:
    Software error: Can't access file at akvilon.cgi line 7.

Check the file permissions of the file you are trying to open. This not so much a perl problem as a file permissions problem.

Some code for you to try running on your web server:
#!/usr/bin/perl -w ############################ $|=1; use strict; use CGI qw / :all /; use CGI::Carp qw / fatalsToBrowser /; my $q = new CGI; # We'll use this later.. you'll see... print header; print start_html( -title => 'what my system looks like' ); print h1('Environment'); print table( map { tr ( td($_),td($ENV{$_})) } sort keys %ENV ); print h1('CGI structure'); print table( map { tr ( td($_ ),td($q->param($_))) } sort $q->param ); if ( $ENV{HOME} ) { print h1('MISC stuff'); my $stuff=`ls -lad $ENV{$HOME}`; print p('Home directory permissions',br(),$stuff); if ( -d $ENV{HOME} . '/cgi-bin' ) { $stuff=`ls -lad $ENV{HOME}/cgi-bin`; print p('CGI directory permissions',br(),$stuff); } else { print p('The directory cgi-bin is not in $ENV{HOME}'); } } print end_html; exit(0);

CAVEAT: This code is untested! I threw it together before my first cup of coffee!

That should give you some information that might help you.

There is more to writing CGI scripts to consider than the code itself.


Peter L. BergholdBrewer of Belgian Ales
Peter@Berghold.Netwww.berghold.net
Unix Professional

In reply to Re: Re: Re: Re: Re: code problem by blue_cowdawg
in thread code problem by sandal

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.