On Thu, Aug 07, 2003 at 06:38:41AM -0700, Dege, Robert C. wrote: > > Yes, the lbl-template is defined in the tapetype. I also defined the > printer="lp", but it didn't seem to help. > > -Rob > > -----Original Message----- > From: Jon LaBadie [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 9:22 AM > To: Amanda List (E-mail) > Subject: Re: Amanda Printing error > > > On Thu, Aug 07, 2003 at 05:59:11AM -0700, Dege, Robert C. wrote: > > > > I just installed amanda-2.4.4p1, and am getting this error message: > > > > amreport: ERROR no printer command defined > > > > Backups are still being done however. Any ideas why I'm gettign this? > > Do you have lbl-template defined? > If so, it is trying to print a tape label and doesn't know how. >
Its funny, I have lbl-template defined and I get a printing after each amdump/amreport. Yet I don't have a printer definition in any of my config files. However, I see in my config/config.h file that configure found a printer command and the option to specify a printer name. They are set as "LPRCMD" and "LPRFLAG" in the config.h file to "/usr/bin/lp" and "-d" respectively. I'm guessing now that the printer directive in the tapetype is used to specify a printer "name", not command, in case the printer you want to print to is not the default. In that case the LPRFLAG would be used with the printer name as "/usr/bin/lp -d <printer>" and I could print to any of my several printers. But the above is just a guess, untried and I haven't looked it up in the docs or the source. Check that your config.h file has reasonable definition for LPRCMD and LPRFLAG and try either leaving out the printer definition or specifying a printer name. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
