Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete remote printers ?

Status
Not open for further replies.

fonso

Technical User
Nov 22, 2002
35
ES
Hellow.

I have configured various remote printer in my sco box.
Now, when I want create a new local printer, don't appear in my printers list (wiht the mkdev lp ), but if I try to add another time the same printer, it is already installed.

Now, I don't need the remote printers. I need to remove the remote printers.
How I can delete the remote printers from my sco box?

Now when I do a "lpstat -t" command, the system stops searching for the remote printer

impone : connection refused

could'n connect to printer "impone"
unable to get network name for local machine ...

I need delete all the remote printers.

Thank you.
fonso.

 
Sorry for the typo. The pathname is /etc/printcap
PH.
 
With this, the lpstat -t command don't are waiting the connection to the remote printer, but the remote printer are displayed, like one local printer.

How I can delete it ?

Thank you.
Fonso.
 
Try this as superuser:
Code:
  /usr/lib/lpshut
  /usr/lib/lpadmin -x YourPrinter
  cd /var/spool
  find lp lpd -type d -name YourPrinter -exec rm -rf {} \;
  /usr/lib/lpsched
  lpstat -t
HTH
PH.
 
I have the same issue... In my case the terminal the printer was connected to is gone. For example the printer is printer3 on host local3... local3 is no longer on the network.

/usr/lib/lpshut #works ok
/usr/lib/lpadmin -x YourPrinter #fails out... says it can't connect to host local3

lpstat -p shows the printer "printer3"
lpstat -t hangs on connection to local3.
removing the directories under /var/spool/lp and lpd doesn't help, the printer still shows up in lpstat -t and
hangs it...
What else can be tried??
 
Yes - deleting the entry from /etc/printcap did the trick. The printer no longer shows up in lpstat -p or lpstat -t.
Thanks again Stan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top