Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got an ASCII print job coming from a legacy system that I don't control. Currently it's aimed at a regular printer.

I'd like to be able to catch the job with the Generic/Text Only driver and send it to a file location for import.
I can set up a local port with the path in the name and the data will end up there just fine. The problem is that it always overwrites the previous file.

Is there a way to specify an environment variable or something in the path to create a dynamic file name so that each job has a unique name?

share|improve this question
up vote 1 down vote accepted

There's no built-in functionality to do what you want.

I'd consider looking at RedMon, a print monitor that allows you to redirect print jobs to scripts, programs, etc. You'd install RedMon, create a "RedMon port", and in the properties for that port you can specify a program that the printer's output is redirected to. At that point, you'd just be left with writing a script that can accept the output and store it where you want.

share|improve this answer
Thanks, that put me down the right path. – kettch Feb 7 '12 at 19:36
Glad I could help. – Evan Anderson Feb 7 '12 at 19:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.