Search Results

Search: Posts Made By: njafri
2,809
Posted By njafri
Thanks worked ---------- Post updated at...
Thanks worked

---------- Post updated at 12:39 PM ---------- Previous update was at 12:39 PM ----------




Thanks worked
2,809
Posted By njafri
Thanks for replying Yes the format (HOST =...
Thanks for replying
Yes the format
(HOST = ab1078uk.server.com)
Will always be the same...only the word "ab1078uk" will keep changing


I will be searching for ".server.com" and it should...
2,809
Posted By njafri
How to extract just a word from a File in Shell?
Hello Friends,

I have a txt file which has data like this


TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 23-MAR-2010 15:38:42
Copyright (c) 1997, 2006, Oracle. All...
3,572
Posted By njafri
Thanks for the reply..I replaced the code with...
Thanks for the reply..I replaced the code with the line that you posted ..Its displaying 5 blank lines...although my text file has data on each line
3,572
Posted By njafri
Display string at line number
I have a code here , which should display lines 6,10,14,18,35 of a text file


#!/bin/ksh
line[1]=6
line[2]=10
line[3]=14
line[4]=18
line[5]=35
for i in 1 2 3 4 5
do
val=`echo...
Forum: Solaris 01-29-2010
13,246
Posted By njafri
I tried this.. what happens is if i run it on...
I tried this..
what happens is if i run it on the command prompt (outside) script it works fine..But in the script its not removing spaces


echo -e " READ WRITE"|tr -d '\n'
READ WRITE

...
Forum: Solaris 01-29-2010
13,246
Posted By njafri
Hello Friend, I think you reply was in the...
Hello Friend,

I think you reply was in the right direction to fix the problem in the code..This is what i am geting after echoing those 2 values



x{
READ WRITE}x

xREAD WRITEx

...
Forum: Solaris 01-29-2010
13,246
Posted By njafri
Tried putting "==" no progress. There is a space...
Tried putting "==" no progress. There is a space between "READ WRITE"
Forum: Solaris 01-29-2010
13,246
Posted By njafri
String Comparison in Shell script
I Have a script which gets the status of oracle database and if the status is READ WRITE ..it should echo "db is up " else "db is down"

Here is the code

if [ "$status" = "READ WRITE" ]
then
...
5,399
Posted By njafri
I am looking for smthng that will grep a process...
I am looking for smthng that will grep a process having both the strings....the command that u post ..gives rman OR MRTP...whereas i am looking for rman AND MRTP
5,399
Posted By njafri
OS is Solaris 10 and Shell is csh
OS is Solaris 10 and Shell is csh
5,399
Posted By njafri
Both of them doesnt work :(
Both of them doesnt work :(
5,399
Posted By njafri
grep in Solaris
Hello

I am trying to grep all the processes having strings "rman" and "MRTP"
i.e
ps -ef|grep (rman and MRTP)

how can i achieve this

Thankyou
8,761
Posted By njafri
Hi Thankyou for replying....i dont see...
Hi
Thankyou for replying....i dont see anything in nohup.out atall even after
the script completes running...nohup is not updated atall....Also the script needs to be terminated by kill command...
8,761
Posted By njafri
Problem with nohup
Hello

I am running this script inst.sh

#!/bin/ksh
sqlplus -s username/password @temp.sql


----Here is my temp.sql

set serveroutput on
select instance_name from V$instance;
exit
...
Showing results 1 to 15 of 15

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