Networker

Re: [Networker] Automated scanner using jukebox

2006-05-02 19:26:52
Subject: Re: [Networker] Automated scanner using jukebox
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 2 May 2006 16:25:05 -0700
> I can write a basic batch file that loads and tape without mounting, 
> executes scanner and unloads it, but the problem I have is that scanner 
> pauses at the end with a prompt to put the next tape in or exit. I want 
> scanner to exit once finished so the script can unload the tape and 
> continue working, there doesnt appear to be any command line switch to 
> make scanner terminate once finished.
> 
> To my mind, this is a massive oversight on Legatos behalf - scanning tapes 
> is a tedious process at best, using an autoloader is the obvious answer.

I haven't tried automating it.  Have you tried running it with no
connection to the shell?  Does it run or just exit out?

scanner -blah...  < /dev/null > /tmp/scanner.log 2>&1

If that doesn't work, then 'expect' would allow you to automate it
externally.  More annoying than working entirely within scanner, but
pretty dependable.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER