I am copying a file to tape but it keeps failing, can any body help?
I tried the tar,cp, mv commands and not seems to be working
#!/bin/ksh
#
# Return Codes
# 0 - success
# 1 - failure
#
#
#
dat=`date +%y%m%d`
cp /u07/work/theo_test.log /dev/rmt0/exp_dump.${dat}.$$
if (( ${?} != 0 ))
then
echo "move to tape for oracle exp_dump.${dat}.$$ failed" > /u07/work/temp.$$
mailx -s "MOVE OUTPUT FOR ORACLE failed"
ted@ddxm.com< /u07/work/temp.$$
return 1
fi
return 0
BELOW IS THE ERROR MESSAGE
cp: /dev/rmt0/exp_dump.021203.55874: A parameter must be a directory.
CAN ANY ONE HELP WITH THE WORK AROUND OR THE CORRECT SYNTAX TO MAKE THE COPY WORK?
Thanks