Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-10-2008, 09:17 PM   #1
jpclark49
Triple-A Player
 
Join Date: Jul 2008
Posts: 72
printer fix script

I'm looking for help creating a (Bash) script to fix printing problems.

Mom has an old iBook running 10.3.9 and a printer. Once in a while, the printer has a problem and she keeps hitting print over and over again. So I had to talk her through opening the printer spool icon and deleting all the print jobs.

Having a script that I could talk her into running that would delete everything in the spool folder for the printer to help fix a printing problem. Any info you can provide to help build this script would be appreciated.
jpclark49 is offline   Reply With Quote
Old 08-11-2008, 11:31 AM   #2
baf
MVP
 
Join Date: Jun 2007
Location: Skellefteċ, Sweden
Posts: 1,173
#! /bin/bash

cancel -u "$USER"
__________________
/Bengt-Arne Fjellner IT-Administrator Luleċ university, Sweden.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
baf is offline   Reply With Quote
Old 08-11-2008, 10:44 PM   #3
jpclark49
Triple-A Player
 
Join Date: Jul 2008
Posts: 72
Thanks! That was easy! I was expecting something to go into the proper directory and delete files or something.

I almost hate to be greedy and ask if there is a simple command to clear completed jobs from the print queue.

Thank you.
jpclark49 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.