Unix shell scripting questions [message #596856] |
Thu, 26 September 2013 13:43 |
lg123
Messages: 225 Registered: August 2008
|
Senior Member |
|
|
[MERGED by LF]
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
----------------------------------------
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
[Updated on: Fri, 27 September 2013 14:21] by Moderator Report message to a moderator
|
|
|
Re: shell scripting [message #596857 is a reply to message #596856] |
Thu, 26 September 2013 14:02 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
I know almost all the answers to your questions, however, I still can't help you in this regard, like anybody else in this forum, since, it has nothing to do with Oracle. I contemplate this thread would be locked by a moderator.
Regards,
Lalit
|
|
|
|
|
|
|
|
|
Re: Meaning [message #596948 is a reply to message #596947] |
Fri, 27 September 2013 14:22 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
lg123: as it appears that your questions are not directly related to Oracle, these topics have already had been locked. Just in case you didn't understand what Michel and BlackSwan tried to tell you: find a Unix forum and discuss these questions over there.
Therefore, don't open such topics any more, there's no use in doing that.
|
|
|