Results 1 to 3 of 3

Thread: Meaning

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Unanswered: Meaning

    Please let me know the meaning for the below statements in shell scripting.

    1) exit -99
    --------------------------------
    2) set prgdir = `pwd`
    set runFlag = runFlag:FALSE
    -------------------------------------
    3) if (-f $prgdir/maillst.eml) then
    set distEmail = `cat $prgdir/maillst.eml`
    endif
    -----------------------------------
    4) if (! -f $HOME/.mypw.$$ ) then
    $prgdir/getpassword.sh $HOME/.mypw.$$
    endif
    ------------------------------------------------
    5) set UserId = `head -1 $HOME/.mypw.$$ | tail -1`
    set PassWord = `tail -1 $HOME/.mypw.$$`
    ----------------------------------------------------
    6) set runTmp = $<
    -------------------------------
    7) $myecho "lbuf: $lbuf\n dnsname: $dnsname -- srvOS: $srvOS -- sendFN: $sendFN\n
    ----------------------------------------
    8) set putcmd = "scp -o StrictHostKeyChecking=no $sendFN $UserId"@"$dnsname":"$targetFN"
    ---------------------------------------------------------
    9) set send_slow {10 .500}
    spawn $putcmd
    expect "*?assword*"
    ------------------------------------------------------
    10) $prgdir/installCompliance.exp $dnsname $HOME/.mypw.$$ $targetFN $runFlag $ckJob $distEmail $forceEmail $TzFlag

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool

    Quote Originally Posted by lg123 View Post
    Please let me know the meaning for the below statements in shell scripting. . . .
    Perhaps you need to review your Unix 101 course.
    This will help.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Apr 2011
    Posts
    34
    And don't forget to browse the reference I gave you here:
    http://www.dbforums.com/unix-shell-s...ml#post6601246

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •