I need a solution
Hello Experts,
My script is not working and i am getting below error.I am not so much good on scripts,if someone can help me i would appreciate:
----------------------------
#!/usr/bin/ksh
/usr/openv/volmgr/bin/vmquery -rn 0 -bx | grep -i scratch >/tmp/scratch.tmp
/usr/openv/volmgr/bin/vmquery -rn 1 -bx | grep -i scratch >>/tmp/scratch.tmp
/usr/openv/volmgr/bin/vmquery -rn 2 -bx | grep -i scratch >>/tmp/scratch.tmp
scratch=`cat /tmp/scratch.tmp |wc -l`
echo "Current scratch = $scratch tapes" | mailx -s "SCRATCH TAPES COUNT - $scratch count remaining" company.com
-----------------------------------------
Anyone can modify and tell me specifiaclly what i have to mention so that i will test.