I am reading from a log file that is generated from
with in SIEBEL using a
SIEBEL command and parsing though it for errors then
if there is an error
found I need to send en email to someone.

You are correct about not having to use the web server
so I decided that it
was inefficient. I am going to try to connect to the
Smtp server directly.
using perl here is my code:

my $mailprog = 'smtp.ts.checkpoint.com';  #set mail
program

#Set variables for each of the fields in the form
#my $error = param ('error'); #error
#my $workflow = param ('workflow'); #workflow

open(MAIL,"|$mailprog -t");---THIS WOULD BE LINE 20
print MAIL <<"EOF";
From: Web Site <support\@ts.checkpoint.com>
To: lprais\@ts.checkpoint.com
Subject: Workflow failure

The following error has occurred on Apollo and related
to Siebel:

Name: Testing
Workflow: Testing

EOF

close MAIL;

Getting the following errors.


<H1>Software error:</H1>
<PRE>Type of arg 1 to each must be hash (not
subroutine entry) at test line
20,
near &quot;);&quot;
Execution of test aborted due to compilation errors.
</PRE>
<P>
For help, please send mail to this site's webmaster,
giving this error
message
and the time and date of the error.

[Tue Dec 11 15:28:26 2001] test: Type of arg 1 to each
must be hash (not
subrout
ine entry) at test line 20, near ");"
[Tue Dec 11 15:28:26 2001] test: Execution of test
aborted due to
compilation er
rors.


Line 20-------open(MAIL,"|$mailprog -t");


--- Jenda Krynicky <[EMAIL PROTECTED]> wrote:
> From:                 Lance <[EMAIL PROTECTED]>
> 
> > I have a question and I was wondering if anyone
> had an
> > opinion on it.  I am using a perl script to parse
> > through a log file and if there is an error found
> I
> > need to send and email to someone..
> > 
> > I was thinking about calling an ASP page and
> passing,
> > the relevant information and when this page is
> called
> > generate and send the email. 
> 
> Sorry but ... do you need to be able to start the
> log file parsing from 
> the web, or do you want to do it automaticaly?
> 
> If the second there is no reason to involve the web
> server. Just 
> schedule a perl script that'll do everything needed.
> 
> No need for any CGI nor ASP.
> 
> Jenda
> 
> =========== [EMAIL PROTECTED] ==
> http://Jenda.Krynicky.cz ==========
> There is a reason for living. There must be. I've
> seen it somewhere.
> It's just that in the mess on my table ... and in my
> brain.
> I can't find it.
>                                       --- me
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to