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: Sybase::BCP Output suppression
Date: May 14 1999 5:41PM

Graf, Chris writes:
 > 
 > Is there any way to turn off the normal BCP input messages or redirect them
 > to a file?

There is a (undocumented, ack!) LOGGER configuration param:

$bdp->config(..., LOGGER => \&my_sub);

sub my_sub {
    print "@_\n";   # or whatever...
}

Then in my_sub() you can do whatever is appropriate...

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