Capturing a Mac spool file

PaperCut Support may ask you to supply a print-to-file. This is a little more difficult on the Apple Mac platform and involves "capturing" a spool file using one of the following procedures:

Automated Script

This method involves running a command/shell script on the system hosting your print queues (i.e. the print server) to gather up required files. The procedure is:

1. Temporarily stop the printer, or turn off the printer so that jobs hold in the queue. Print a job, or set of jobs that demonstrates the problem behavior. This printing may be performed from a workstation.
2. Download and unzip onto the system hosting the print queues, the script from here: gather-files-for-papercut.zip
3. Copy the file to your home directory.
4. Ensure execute permissions are set on the file. (Command-click on the file, select Get info, and set under Ownership & Permissions)
5. Double click on the gather-files-for-papercut.command file. Enter your system password if requested (admin access is required).
6. Email the file files-for-papercut.tgz found in your home directory. Also include the "expected" information related to the job including:
- the number of pages
- the paper size
- other attributes such as grayscale, copies, etc.

Manual Method

1. Temporarily stop the printer, or turn off the printer so that jobs hold in the queue. Print a test job that demonstrates the problem behavior.
2. Open the Terminal under Applications/Utilities
3. Type the following in the terminal:
        sudo su -
        [enter your password]
        cp `ls -t /var/spool/cups/d* | head -2` /Users/<username>
        exit
where <username> is your short login name. (i.e. this denotes the location of your home directory). Special Note: the character preceding the ls and following the 2 is a back-tick (`).
4.You should how find at least one file in your home directory with a name like:
           d00077-001
5. email the file(s) to support and also include the "expected" information related to the job including:
- the number of pages
- the paper size
- other attributes such as grayscale, copies, etc.

Windows Server Method

If you are printing from a Mac to a Windows print server the following process might be easier than the options above:

1. On the Windows print sever temporarily pause the print queue for the printer causing problems. You can do this by right clicking on Start -> Printers and Faxes -> Name of the printer and selecting the "Pause Printing" option.
2. Print a test job from the Mac to the printer that demonstrates the problem behavior.
3. Take a copy of the spool file (*.SPL) from C:\WINDOWS\system32\spool\PRINTERS. The directory may contain a number of spool files. Copy the file whose timestamp matches the "submitted time" of the job.
4. Rename the file such that it helps the developers to understand what should have been detected. (E.g. 5-pages.SPL)
5. Zip and email the file to support.

Categories: Troubleshooting


keywords: mac print to file, apple,

Page last modified on April 09, 2008, at 09:19 PM