> Almost forgot this is plain text data. > > >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 $_; > }
Looks good. > StartDocPort: failed to start process > Port = RPT1: > Command = "C:\Documents and Settings\pdk\My Documents\perl > code\redirect\redirect.pl" Don't put it in a directory whose path has spaces in it. Just put it in c:\windows or c:\winnt or something :-) Also, have you set up the .pl extension correctly? If so and it still doesn't work, try calling perl explicitly on the .pl file with a full path to the perl executable. Luke -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]