Search Results

Search: Posts Made By: abdul.irfan2
1,118
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"...
10,238
Posted By neutronscott
`hostname` differs from $HOSTNAME
`hostname` differs from $HOSTNAME
10,238
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=( "$@" )
...
2,169
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.
2,169
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...
9,257
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...
9,257
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"...
20,661
Posted By Scrutinizer
On HP-UX set -o vi ESC-K
On HP-UX
set -o vi
ESC-K
20,661
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
20,661
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.
21,480
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

 
All times are GMT -4. The time now is 07:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy