Amanda-Users

Re: postscript paper tape labels

2003-09-12 12:26:24
Subject: Re: postscript paper tape labels
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Thomas Franz <franz AT Incore DOT DE>
Date: Fri, 12 Sep 2003 18:20:03 +0200
Thomas Franz wrote:

I have configured lbl-templ "/path/3hole.ps" for generating ps-files from each log-file with amreport -> merge them into one file -> create one pdf-file with all information of all tapes.
Now, amdump/amflush are logging errors, because I have no printing
system installed/configured.

Is it possible to tell amanda, not trying to call lpr ?

Currently not, but instead of misusing the postscript output,
you could use "amtoc" just after the run, with similar information,
something like:

#!/bin/sh
# amdump wrapper
CONFIG=$1
/usr/sbin/amdump  $CONFIG
LOGF=`ls -t $CONFIG/log.* | head -1`
/usr/sbin/amtoc -a -t $LOGF

or something like that.

Or, if the print system is not installed at all, you could fake
a lpr command that simply does 'cat >/dev/null' or some.

Or wait for some patch to amanda...

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>