PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: stderr and cgi
Date: Apr 13 1999 8:59PM

Jackie Wilson writes:
 > 
 > I would like to have a general logging mechanism for sybperl.
 > I want to log each open, close and execute as well as trap
 > any messages written to stderr to a file.  Has anyone written
 > something like this that I can "borrow"?

I would guess that something that redirects STDERR to a file would
work.

The syntax is

open(STDERR, ">>logfile");

if I'm not mistaken (that's an append, which is probably what you want 
in this case.)

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com