LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-12-2004, 02:57 AM   #1
sam_casperson
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
printfile="/tmp/smbspool.$$"

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
fi
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!
 
  


Reply


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 11:22 PM
can't print properly to win2003 server printer with suse 9.3 kanuuker Linux - Hardware 0 08-15-2005 12:04 PM
Print from a winxp shared printer on Solaris9.0 UltraSoul Solaris / OpenSolaris 4 02-18-2005 12:30 PM
Can't seem to print to an XP Pro Shared Printer powerismine Slackware 1 05-10-2003 12:54 AM
Cannot print to Win2K shared printer from RH8 mjamil Linux - Networking 0 11-05-2002 09:55 PM


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

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