Wise ones, Below is a portion of my code. The code runs fine when I am logged in as the user. When I am not logged in, the code stops at the point where it tries to connect to the database using the odbc connection. Is there a way to run this code while not logged in?

Your help is always received gratefully. Eli
#!/usr/bin/perl # ed.pl use warnings; use strict; use DBI; print "Content-type: text/html\n\n"; print "<html><head><title>Enviroment Dumper </title></head><body>"; my ($CDS, $UPDATE, $id, $text, $sqlquery, $prodnum, $catid, $catnum, $sqlquery1, $description, $count, $pccount, $sqlquery2,$s +qlquery3, $cecount ); my (@list, @count, @pccount, @cecount); # DATABASE CONNECT*************************************** $CDS=DBI->connect('DBI:ODBC:claudonntCDS', 'xxxx') || die "error opening database: $DBI::errstr\n";

In reply to using odbc while logged off by esolm

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.