Search Results

Search: Posts Made By: abdul.irfan2
712
Posted By Yoda
You need to put blank spaces in between test...
You need to put blank spaces in between test expressions and also wrap string in double quotes:
if test "$DB_STATUS" = "OPEN"; then
But the simple way of doing it is:
if grep -q "OPEN"...
6,856
Posted By neutronscott
`hostname` differs from $HOSTNAME
`hostname` differs from $HOSTNAME
6,856
Posted By neutronscott
You can replace ssh with your own function. So...
You can replace ssh with your own function. So when you type ssh, you set title, execute real ssh, then set the title back. Try this in profile on ServerA:


ssh() {
local args=( "$@" )
...
1,296
Posted By gary_w
Get the SID and password at the same time
Try implementing something like this to save a few processes, useless use of cat (http://partmaps.org/era/unix/award.html)and get the data you need at the same time, a row at a time (note this is...
1,296
Posted By gary_w
Input Field Separator
It's the Input Field Separator so read knows to parse on that character.

P.S. I edited the example to use your code.
6,216
Posted By ctsgnb
by the way this can save you some numerous | ...
by the way this can save you some numerous |

lsnr_ownr=$(ps -ef | nawk -v O="$ORACLE_SID" '($0~O)&&/[t]nsl/{print$1}')

ORACLE_HOME=$(ps -eaf | sed -n...
6,216
Posted By anurag.singh
U may use some flag, set it as needed and use it...
U may use some flag, set it as needed and use it to run last command OR not to run.


.
.
flag="N"
if test $lsnr_ownr = $user_id; then
echo "Listener $LSNR is being ran as $lsnr_ownr owner"...
13,248
Posted By citaylor
Some other shells do support this functionality...
Some other shells do support this functionality as well, but you have to type:
set -o emacs
13,248
Posted By nixhead
This normally works on BASH shell, so you may...
This normally works on BASH shell, so you may have to enable the BASH shell. I know the extended information will come in trailing replies.
13,248
Posted By Scrutinizer
On HP-UX set -o vi ESC-K
On HP-UX
set -o vi
ESC-K
17,140
Posted By jim mcnamara
$ lsnrctl version|grep Version| awk '{print $5}'|...
$ lsnrctl version|grep Version| awk '{print $5}'| awk -F. '{print $1}'|uniq |head -1

That ok?
Showing results 1 to 11 of 11

 

Featured Tech Videos

All times are GMT -4. The time now is 11:17 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy