Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-12-2004, 01:57 AM   #1
LQ Newbie
Registered: May 2004
Location: Brisbane, Queensland Australia
Posts: 4

Rep: Reputation: 0
Using samba to print to a win2003 shared printer

ive been rackin my brain over this for ages and i cant get my head around it.

The windows 2003 machine has a few shared printers running on it. At the moment it is just a basic install and it isnt a domain controller or part of a domain. When i setup the printer on my windows XP machine, it can print fine without any problems, but windows 2003.... nothing. Im pretty sure i need to supply a username and password but i have no clue on how to get it there.

im using the following command to print to the printer through samba

client="oak-2003" # client name here...
pshare="Comlaser" # and here printer share name

cat > $printfile 2>&1

if [ -s $printfile ] ; then
( echo "translate" ; echo "print $printfile" ; echo "quit" ) \
| /usr/bin/smbclient \\\\$client\\$pshare -N > /dev/null 2>&1
rm -f $printfile

exit 0

The machine im trying to print from is running RedHat enterprise linux 3 and is running samba v3.

Thanks for any help!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print to my windows shared printer from mandriva roybullard Mandriva 6 11-07-2005 10:22 PM
can't print properly to win2003 server printer with suse 9.3 kanuuker Linux - Hardware 0 08-15-2005 11:04 AM
Print from a winxp shared printer on Solaris9.0 UltraSoul Solaris / OpenSolaris 4 02-18-2005 11:30 AM
Can't seem to print to an XP Pro Shared Printer powerismine Slackware 1 05-09-2003 11:54 PM
Cannot print to Win2K shared printer from RH8 mjamil Linux - Networking 0 11-05-2002 08:55 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration