Re: Problems after trial runs.
2003-09-02 19:40:17
Thanks Jon, with your suggestion I was able to find the problem. I had an
empty changer-access file.
Thanks,
Stefan
On Tue, 2 Sep 2003, Jon LaBadie wrote:
> On Tue, Sep 02, 2003 at 11:52:30AM -0700, Sak wrote:
> > On Monday 01 September 2003 03:41 pm, Jon LaBadie wrote:
> >
> > > What do the debug logs say about the tapes it "spits out"?
> >
> > Here's what shows up in an amdump log file from the very first attempt...
> >
> > changer: opening pipe to: /usr/local/libexec/chg-manual -info
> > changer: got exit: 0 str: 1 99 1
> > changer_query: changer return was 99 1
> > changer_query: searchable = 0
> > changer_find: looking for DailySet1-002 changer is searchable = 0
> > changer: opening pipe to: /usr/local/libexec/chg-manual -slot current
> > changer: got exit: 0 str: 1 /dev/nst0
> > taper: slot 1: date 20030827 label DailySet1-001 (active tape)
> > changer: opening pipe to: /usr/local/libexec/chg-manual -slot next
> > changer: got exit: 0 str: expr: syntax error
> > taper: slot expr:: tape_rdlabel: tape open: syntax error: No such file or
> > directory
> > changer: opening pipe to: /usr/local/libexec/chg-manual -slot next
> > changer: got exit: 0 str: expr: syntax error
> > taper: slot expr:: tape_rdlabel: tape open: syntax error: No such file or
> > directory
> > changer: opening pipe to: /usr/local/libexec/chg-manual -slot next
> > changer: got exit: 0 str: expr: syntax error
> > taper: slot expr:: tape_rdlabel: tape open: syntax error: No such file or
> > directory
> >
> > ...any thoughts on this?
> >
>
> Yeah,
> there are defects in the chg-manual script.
>
> I'm guessing that some variable used in an expression like
>
> var=`expr $foo <operator> $bar`
>
> is empty. Thus expr tries to calculate "nothing" <operator> something.
> Like "" + 4. That would be an expr syntax error.
>
> jl
> --
> Jon H. LaBadie jon AT jgcomp DOT com
> JG Computing
> 4455 Province Line Road (609) 252-0159
> Princeton, NJ 08540-4322 (609) 683-7220 (fax)
>
|
|
|