Home » Infrastructure » Unix » Unix shell scripting questions (shell scripting, oracle)
Unix shell scripting questions [message #596856] Thu, 26 September 2013 13:43 Go to next message
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
----------------------------------------
Cool 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 Go to previous messageGo to next message
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: shell scripting [message #596858 is a reply to message #596857] Thu, 26 September 2013 14:59 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I suppose it wouldn't do any harm if you help him /forum/fa/3314/0/. I probably would, but I forgot how to speak Unix.
icon4.gif  Re: shell scripting [message #596860 is a reply to message #596856] Thu, 26 September 2013 15:02 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Unix shell scripting code [message #596930 is a reply to message #596856] Fri, 27 September 2013 10:11 Go to previous messageGo to next message
lg123
Messages: 225
Registered: August 2008
Senior Member
${PFILE}.backupfile

Please tell me what the above statement means?
icon13.gif  Re: Unix shell scripting code [message #596934 is a reply to message #596930] Fri, 27 September 2013 10:34 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Meaning [message #596945 is a reply to message #596856] Fri, 27 September 2013 13:43 Go to previous messageGo to next message
lg123
Messages: 225
Registered: August 2008
Senior Member
get_oratab ${ORACLE_CHECK_ID}
Re: Meaning [message #596947 is a reply to message #596945] Fri, 27 September 2013 14:15 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://www.lmgtfy.com/?q=unix+forum
Re: Meaning [message #596948 is a reply to message #596947] Fri, 27 September 2013 14:22 Go to previous message
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.
Previous Topic: Oracle installation issue on solaris
Next Topic: Tar the binary files
Goto Forum:
  


Current Time: Thu Nov 21 11:03:15 CST 2024