Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


LinkBack Search this Thread
Old 02-11-2008, 05:59 PM   #1
LQ Newbie
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Question Print directly to Windows network printer within a bash shell script

I am currently developing a shell script to pint configuration/log files to a network printer. I need to print these files without making any configuration changes to the current image.

Is there a way to print directly to a Windows network printer using samba without having to modify the smb.conf file or setting up a print queue using lpadmin?

Old 02-12-2008, 02:15 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,772

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Try the smbprint script that comes with samba. Read here andhere for details.
Use the smbprint that comes with your samba version and not the script that is used in the links I gave you.



samba windows

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
executing shell script in terminal directly with a double click kushalkoolwal Programming 15 11-26-2012 02:32 PM
samba print server for windows network, cannot save printer setting lnthai2002 Linux - Networking 0 07-25-2006 10:38 AM
Cannot install a network printer, that is connected directly to the network. Epeescott Linux - Networking 3 03-19-2006 08:31 PM
print from Sarge over the Windows Network Printer cccc Debian 1 06-08-2005 07:51 PM
login directly to bash shell openart Linux - Newbie 5 10-27-2004 08:05 AM

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

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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration