defining a printer in qconfig


 
Thread Tools Search this Thread
Operating Systems AIX defining a printer in qconfig
# 1  
Old 03-18-2008
Question defining a printer in qconfig

I've got a modified samba script (named it winprint) that I can use to print out to a to a shared Win Network printer from an AIX machine. This is a modification of the samba provided smbprint script changed to work under AIX as the backend for a queue. It does not read a config file

I can print the passwd file to the Win printer using the command: $ ./winprint /etc/passwd

However I can't seem to define the script as a printer in the qconfig as mentioned below.

winprint:
device = dwinprint
up = TRUE
discipline = sjn
dwinprint:
backend = /usr/local/samba/lib/printers/winprint

lpstat -t shows that this printer wasn't defined and when I try to print with lp -d winprint /etc/passwd I get the error : “lp: The printer or class was not found.”

Is it just a matter of config? as I can use the script to print already.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Help with /etc/qconfig file

Hi Initially our printers are directly connected to SAA. But now connections to the printers go through a VPN. Therefore it is necessary to modify the IPs declared on the server to go through the NATTED adress corresponding to the VPN, instead of the real address of the printer. We got a... (3 Replies)
Discussion started by: newtoaixos
3 Replies

2. UNIX for Dummies Questions & Answers

Help with defining PATH

Hi All, I have a trivial question but I dont know how to solve it. So basically I'm working on a USB key and I have a directory with some scripts which I use to work on files present in other directories within the USB or sometimes on the main harddisk too. The problem is every time I have to... (3 Replies)
Discussion started by: pawannoel
3 Replies

3. Linux

Find printer location and printer type

Hi, Is it possible to find the printer location and printer type (whether it is local or network) using command in Linux ? Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies

4. UNIX for Dummies Questions & Answers

Defining an alias FreeBSD

I have defined this alias as quick way to find out which mount point to use for a USB drive after inserting it: # alias da='dmesg | grep da | grep MB' However, when invoking it, it states the following: # da da: Command not found. Can someone explain what is the issue here and how it can be... (3 Replies)
Discussion started by: figaro
3 Replies

5. UNIX and Linux Applications

Problems with defining triggers

I am running the example from the following webpage: MySQL :: MySQL 5.0 Reference Manual :: 12.1.11 CREATE TRIGGER Syntax and the problem is that triggers cannot be defined for some reason: CREATE DATABASE IF NOT EXISTS triggertest; USE triggertest; CREATE TABLE test1(a1 INT); CREATE TABLE... (3 Replies)
Discussion started by: figaro
3 Replies

6. Shell Programming and Scripting

defining variables

Hey all, I was wondering if someone would take a look at this script I'm working on. I don't know if i have the syntax correct for my variables and if the for loop is written correctly. any assistance would be greatly appreciated. #!/usr/bin/bash ###########################################... (12 Replies)
Discussion started by: em23
12 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

Defining Variables

I'm trying to define a variable named sin I already have a variable named cos, which has the value "hello" I want sin to have the value of "hellothere", so sin would be something like sin = $cos & "there" but I'm not sure that I know the syntax. Can anyone help? :confused: (4 Replies)
Discussion started by: sailorliones
4 Replies
Login or Register to Ask a Question
SMBSPOOL(8)						    System Administration tools 					       SMBSPOOL(8)

NAME
smbspool - send a print file to an SMB printer SYNOPSIS
smbspool {job} {user} {title} {copies} {options} [filename] DESCRIPTION
This tool is part of the samba(7) suite. smbspool is a very small print spooling program that sends a print file to an SMB printer. The command-line arguments are position-dependent for compatibility with the Common UNIX Printing System, but you can use smbspool with any printing system or from a program or script. DEVICE URI smbspool specifies the destination using a Uniform Resource Identifier ("URI") with a method of "smb". This string can take a number of forms: o smb://server[:port]/printer o smb://workgroup/server[:port]/printer o smb://username:password@server[:port]/printer o smb://username:password@workgroup/server[:port]/printer smbspool tries to get the URI from the environment variable DEVICE_URI. If DEVICE_URI is not present, smbspool will use argv[0] if that starts with "smb://" or argv[1] if that is not the case. Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set the DEVICE_URI environment variable prior to running smbspool. OPTIONS
o The job argument (argv[1]) contains the job ID number and is presently not used by smbspool. o The user argument (argv[2]) contains the print user's name and is presently not used by smbspool. o The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job. o The copies argument (argv[4]) contains the number of copies to be printed of the named file. If no filename is provided then this argument is not used by smbspool. o The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool. o The filename argument (argv[6]) contains the name of the file to print. If this argument is not specified then the print file is read from the standard input. VERSION
This man page is correct for version 3 of the Samba suite. SEE ALSO
smbd(8) and samba(7). AUTHOR
smbspool was written by Michael Sweet at Easy Software Products. The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy. Samba 3.5 06/18/2010 SMBSPOOL(8)