script question - passing variable to ufsdump

From: Laurence Moughan (Laurence.Moughan_at_aerlingus.com)
Date: 10/29/04

  • Next message: Vijay Raghavan: "RE: command to check open files"
    Date: Fri, 29 Oct 2004 15:49:26 +0100
    To: <sunmanagers@sunmanagers.org>
    
    

    Helo,

    can someone please advise what is wrong with below,

    #!/bin/ksh
    set -x

    d=`date | awk '{print $1}'`
    echo $d
    case $d in
            "Mon") d="1" ;;
            "Tue") d="2" ;;
            "Wed") d="3" ;;
            "Thu") d="4" ;;
            "Fri") d="5" ;;
            "Sat") d="6" ;;
            "Sun") d="0" ;;
    esac
    echo $d

    ufsdump $duf /dev/md/dsk/d50 /dev/rmt/0

    when run the ufsdump switchs are ignored,

    + + awk {print $1}
    + date
    d=Fri
    + echo Fri
    Fri
    + d=5
    + echo 5
    5
    + ufsdump /dev/md/dsk/d50 /apps1/dump
      DUMP: Bad option `/'
      DUMP: The ENTIRE dump is aborted.

    TIA

    Laurence
    humble poor scripter

    For low fares and great deals on hotels, car hire and travel insurance visit http://www.aerlingus.com
    of any action in reliance upon, this information by persons or entities
    other than the intended recipient is prohibited.If you have received
    this email in error please notify the sender immediately and delete
    the material.
    *******************************************************************************
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Vijay Raghavan: "RE: command to check open files"

    Relevant Pages