LPR CUPS to Windows server and queue.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users LPR CUPS to Windows server and queue.
# 1  
Old 09-28-2017
Question LPR CUPS to Windows server and queue.

Hi everyone,

Our office has a lot of printers (label & laser), and sometimes it gets quite hard to configure a new printer in CUPS as most printer manufactures does not provide drivers/ppd for CUPS/LINUX/UNIX.

So we are trying to move to a Windows Print Server and run a Proof of concept. We have a windows server in place now, lets say with name uswin2012.domainname and a printer queue with name usprint-abc. And the printer name is also usprint-abc. usprint-abc is added to CUPS and Windows server as well. I want to lpr on cups and say point to the queue on windows server. So I guess the command for it is -
Code:
[root@server1 cups]# lpr -H uswin2012.domainname -P usprint-abc

Is this correct?

Because whenever I enter this, it just stays blank with no result and I have to 'control C' out of it?

usprint-abc is a label printer.

Am I doing something wrong here?

Any help would be appreciated. Thank you.

Last edited by rbatte1; 09-29-2017 at 07:12 AM.. Reason: Converted to use CODE tags rather than Bold
# 2  
Old 09-29-2017
Hi.
Code:
If  no files are listed on the command-line, lpr reads
       the print file from the standard input.

-- excerpt from man lpr, q.v

In addition, I have had good luck with shared printers on LInux, including:
Code:
Brother-HL-2270DW-series accepting requests since Wed 27 Sep 2017 12:36:15 PM CDT
hplj1100 accepting requests since Mon 30 Jan 2017 11:15:44 AM CST
OKI-DATA-CORP-B6300 accepting requests since Mon 18 Sep 2017 10:42:57 AM CDT

The OKI-DATA is very old, and I can still use it.

Best wishes ... cheers, drl
# 3  
Old 09-29-2017
Quote:
Originally Posted by Syed Hussaini
Our office has a lot of printers (label & laser), and sometimes it gets quite hard to configure a new printer in CUPS as most printer manufactures does not provide drivers/ppd for CUPS/LINUX/UNIX.
There is a quasi-standard for output being sent to a printer: PostScript. Any network printer worth its ink should be able to at least understand (and correctly print) this. Even my Laser printer at home (HP ColorJet 1525) can do PS and it worked out of the box with my Linux laptop and Linux desktop system at home.

I suggest to - instead of introducing a Windows server - buying office printers for professional use. You should have no problems then.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

2. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

3. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

4. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

5. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

6. AIX

Remote printing to Linux CUPS queue

Hello all. I am setting up a queue under AIX 4.2.1 to print to a remote Linux CUPS queue. At present I can print to the queue remotely from Windows but not AIX. What I am seeing is lpstat reads the state of the remote queue but at job submission time I am getting backend exit fatal errors. The... (4 Replies)
Discussion started by: tgx
4 Replies

7. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

8. UNIX for Dummies Questions & Answers

Changing windows server alias name on windows or unix?

My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
Discussion started by: NycUnxer
1 Replies

9. UNIX for Dummies Questions & Answers

Sharing printer with windows via cups and samba

I want to use my linux box as a print server for my hp printer. I downloaded the linux driver for the printer and installed it. I also configured CUPS and printed a test page with it. Samba is allowing my windows machine to see and install the printer, but when i try to print to it, nothing... (1 Reply)
Discussion started by: Spetnik
1 Replies

10. UNIX for Advanced & Expert Users

Cups print server

I have just installed cup printing software on solaris 8 and i am able to print successfully from the print server but unable to print from any of the print client in my local network subnet. i have enable browsing so that cups printer server could broadcaste itself to client. but still unable to... (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question