[Veritas-bu] Altering script, failing somehow. What have I done wrong?
2003-07-01 22:41:52
Subject: |
[Veritas-bu] Altering script, failing somehow. What have I done wrong? |
From: |
jwood AT apa.qwest DOT net (James Wood) |
Date: |
Tue, 1 Jul 2003 20:41:52 -0600 |
The script fails when it is supposed to feed the contents of the input $FILE
to bpimagelist. Man, I'm learning but it's an uphill battle. ;-)
(Taken from eject_input.scr from backupscripts.com, full attribution to be
included in final)
-----------
#!/bin/sh
usage ()
{
echo "USAGE: $0 schedule_file date(mm/dd/yy) time(hh:mm:ss)" 1>&2
}
if [ $# -ne 3 ]; then
usage
exit 1
fi
DATE=$1
TIME=$2
FILE=$3
TP_INPUT=./tpeject_input
for CLASS in 'grep FILE';do
bpimagelist -media -L -d $DATE $TIME -sl $CLASS | grep "^Media" | awk
'{print $3}' > $TP_INPUT
done
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Altering script, failing somehow. What have I done wrong?,
James Wood <=
|
|
|