>http://www.cs.wisc.edu/~ghost/redmon/
>Use redmon to set up a re-direct port. Redirect to a perl program that
opens a file for append and appends >the print data to it. If you're
opening the data in MS Word (I can't tell from your description if you
>are) you can use OLE to automate printing in Word from Perl.

Wow this is exactly what I needed. I am having some trouble setting it
up. I am redirecting it to perl script...

#!/usr/bin/perl

use strict;
use warnings;
open (OUT,">>out.txt");
while (<>){
  print OUT $_;
}
 

And here is the log file
RedMon - Redirection Port Monitor
Copyright (C) 1997-2001, Ghostgum Software Pty Ltd.  All Rights
Reserved.
2001-10-28  Version 1.7
Environment:
  ALLUSERSPROFILE=C:\Documents and Settings\All Users
  CommonProgramFiles=C:\Program Files\Common Files
  COMPUTERNAME=PKRAUS
  ComSpec=C:\WINDOWS\system32\cmd.exe
  NUMBER_OF_PROCESSORS=1
  OS=Windows_NT
  Path=C:\program files\texmf\miktex\bin;C:\Perl\bin\;c:\Program
Files\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C
:\Program Files\ATI Technologies\ATI Control Panel;c:\Program
Files\Perl\perl2exe
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  PROCESSOR_ARCHITECTURE=x86
  PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
  PROCESSOR_LEVEL=15
  PROCESSOR_REVISION=0207
  ProgramFiles=C:\Program Files
  SystemDrive=C:
  SystemRoot=C:\WINDOWS
  TEMP=C:\WINDOWS\TEMP
  TMP=C:\WINDOWS\TEMP
  USERPROFILE=C:\Documents and Settings\LocalService
  windir=C:\WINDOWS
  REDMON_PORT=RPT1:
  REDMON_JOB=33
  REDMON_PRINTER=Generic / Text Only
  REDMON_MACHINE=\\PKRAUS
  REDMON_USER=pdk
  REDMON_DOCNAME=Test Page
  REDMON_FILENAME=
  REDMON_SESSIONID=0
  
StartDocPort: failed to start process
  Port = RPT1:
  Command = "C:\Documents and Settings\pdk\My Documents\perl
code\redirect\redirect.pl" 
  Error = 193
REDMON StartDocPort: returning 0
  "C:\Documents and Settings\pdk\My Documents\perl
code\redirect\redirect.pl" 
  Printer=Generic / Text Only
  JobId=33
  Level=1
    DocumentName="Test Page"
    OutputFile=""
    Datatype="(null)"
  output=0 show=0 delay=300 runuser=0

Any thoughts???

Paul Kraus


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

Reply via email to