Re: [Networker] Tape Sorting Routine
2006-04-28 12:31:08
In regard to: [Networker] Tape Sorting Routine, King, David - Eastman said...:
What with us replacing many tapes that have gone bad with new ones, our
barcodes are out of order.
Has anyone written a routine to resort them?
:-) I've thought of doing this many times over the years, but never
actually written one. I've often thought that this particular problem
would be a great follow-on to the typical sorting problems that one has
to write in the early undergrad CS classes, because it differs from the
typical sorting in two important ways:
- your "array" may have elements that don't contain anything.
- you may need to use *two* temporary holding spots (two load port slots)
in your swap() routine if your jukebox doesn't support direct slot to
slot moves.
Let me know if someone else sends you one or you write one yourself. I
would be interested in seeing it too. Since we don't "Match volume names
to barcodes" here, I would want to be able to sort on either.
Our StorageTek FSEs used to have a program they would use on their huge
silos at another customer's site, to make the robot "look busy" when tours
of VIPs were going through the machine room there. Having a "jbsort"
would be even more useful than just having a "jbdance". ;-)
Tim
--
Tim Mooney mooney AT dogbert.cc.ndsu.NoDak DOT edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
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
|
|
|