The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-01-2009
percvs88 percvs88 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 8
I run the script below and give me illegal option. I am on HP 11

#

cd /oraappl/pca/vprod/vprodarch
ls -lrt|head -'ls -lrt|awk 'END{print NR-1}'' > backuplist.log
gtar -cvf /oraappl/pca/backups/nightly_offsite/vprod_arch.'date +%m%d%y'.qz -L b
ackuplist.log
exit

vprod@findb > pwd
/oraappl/pca/vprod/vprodscr/bin
vprod@findb > . ./arch_backup.ksh
head: illegal option -- s
head: illegal option --
head: illegal option -- -
head: illegal option -- r
head: illegal option -- t
head: illegal option -- |
head: illegal option -- a
head: illegal option -- w
head: illegal option -- k
head: illegal option --
head: illegal option -- E
head: illegal option -- N
head: illegal option -- D
head: illegal option -- {
head: illegal option -- p
head: illegal option -- r
head: illegal option -- i
t: Badly formed number
gtar: backuplist.log: Invalid tape length
Try `gtar --help' or `gtar --usage' for more information.
vprod@findb >