User Tools

Site Tools


programacion:shellscripts:lstape

Lista el contenido de una cinta magnética

Objetivo

Este script lista el contenido de la cinta magnética que esté montada en el dispositivo apuntado por la variable TAPE

Script

#!/bin/sh
#####################################################################
# lstape.sh
# $Id: backup.sh,v 1.1.1.1 2006/01/17 18:19:44 jherrero Exp $
#
# Copyright (c) 2006, Joaquin Herrero Pintado
# Some rights reserved.
# This software is licensed under the CC-GNU GPL
# http://creativecommons.org/licenses/GPL/2.0/
#
# If you modify your copy or copies of this program or any portion of
# it, or develop a program based upon it, you may distribute the
# resulting work provided you keep this copyright notice intact and
# distribute your work under the same license.
#
#####################################################################

TAPE=/dev/nrst0
mt rewind
restore -i <<EOF
what
EOF
programacion/shellscripts/lstape.txt · Last modified: 2007/04/03 07:45 by jherrero