Thanks for the reply. I knew it was crap coding and I recognized that it was calling twice, I just wanted to get the basic functionality going before tightening it up properly. Since I was experimenting trying to get it to work, I wasn't too concerned about the crap at the moment. I'm not a heavy-duty Perl coder, I'm a database admin, and didn't know that I could simply tie an 'or die' to the function call for error trapping, normally I'm quite dogmatic about including that.
Permissions isn't the issue, I'm using my network admin account when testing this. I was really wondering if I'm missing some sort of a network API call. The framework that this will fit in to reads and filters SQL Server logs every night, but that's just file I/O and works fine.
Thanks again! I'll plug your code in and give it a shot.
-
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.
|