Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple scanner commands

Status
Not open for further replies.

TDun

Technical User
Aug 9, 2001
335
0
0
GB
Possibly a daft question.
Is it possible to run multiple scanner commands on one server (e.g. 4 tape drives, run scanner against 4 tapes at once)?

TIA
 
Hi,

here is a Shell Script example for it

#!/usr/bin/bash
#
# Usage: scandrives.sh drive [drive, drive, ...]
#
# e.g. scandrives.sh 0cbn 1cbn 2cbn
#
# This would scan /dev/rmt/0cbn /dev/rmt/1cbn and /dev/rmt/2cbn
#

if [ $# -lt 1 ]; then echo "Usage: $0 drive [drive, drive, ...]"; exit 1 ; fi

DRIVES=$*

echo "NB: You are about to start a \"scanner -n\" on the following drives:"

for d in $DRIVES ; do
echo /dev/rmt/${d} output written to ${d}.scan
done
echo -n "Proceed? (Y/N): "
read answer
if [ X$answer != "XY" ]; then exit 1 ; fi

# We proceed from here ...

for d in $DRIVES ; do
echo "nohup scanner -vvv -n /dev/rmt/${d} >${d}.scan 2>&1"
nohup scanner -vvv -n /dev/rmt/${d} >${d}.scan 2>&1 &
done

wait

echo Completed


Cheers Novelli
Novell Master CNE + CDE
 
Thanks, I was only interested in if it was ok to do.
I'll be running it on Windows, but am now scripting it.

Cheers,
TDun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top