Search Results

Search: Posts Made By: gkrishnag
Forum: Solaris 03-10-2010
10,591
Posted By gkrishnag
Log Trace
Hi

Can you please be clear?

Regards
Krishna
Forum: Solaris 03-10-2010
10,591
Posted By gkrishnag
Log Trace
Hi

I would like to display only error messages from my log files while monotring application on my solaris box using tail command.

Is there other way we can monitor please let me know?

In...
6,223
Posted By gkrishnag
find a data from several .tar,.gz files
Hi

I have a several files with .tar or .gz in a known location.

i have files with one of the several files of .tar or .gz
text.txt
help.pl
move.txt

how do i write a script to find out...
2,025
Posted By gkrishnag
Hi
That works..

Can you please explain me the above
2,025
Posted By gkrishnag
Hi
Hi

when i run that comamnd i get
grep /dist/advance/2.0.4/20060926-0413 test.txt | tr -d ' '
all the releated path.. in the file.

Conditons:
1) I need to dipslay only one line from the above...
2,329
Posted By gkrishnag
Hi Try this
Hi

if u are looking at the command prompt u can do the below

ls -al > test.txt

directory files will end with "/ "
where the files names doesnt end with " / " are files
2,025
Posted By gkrishnag
my test.txt files contains the following data ...
my test.txt files contains the following data

create-tar:
[echo] Module : source-fileLayouts
[tar] Building tar: /dist/advance/2.0.4/20060926-0413/source-fileLayouts.tar
[tar]...
2,025
Posted By gkrishnag
Extract data correction???
Hi

I have file "test.txt"

i need to extract the data as below from this file.

/home/cvs/gkc ->awk -v RS= '{print $(NF-2),$(NF-1),$NF}' test.txt
Buildfile: build.xml Buildfile: build.xml...
1,659
Posted By gkrishnag
Thanks..
That works..
1,750
Posted By gkrishnag
hi
Try this

path - -> path of the file
age - -> how old file ur trying to retrive
find ${path} -atime +${age} -exec ls -l {} \;
1,659
Posted By gkrishnag
Mail Script need Help???
Hi

I have written the folowing mail function:
SENDMAIL () { mailx -r 'Team' -s ' QA Test & Work Build & Deployment ---> STARTED' $INTERESTED<<EOF
Maintenance is going on $path ...
3,438
Posted By gkrishnag
Hi Try this
Try this...in your script

USERNAME='synertech'
PASSWORD='hello23'
ftp -in novellftp <<EOF
user $USERNAME $PASSWORD
bin
cd /stecnv16/data/shared/public2/gui/webhelp
mget help.zip
bye
EOF
21,580
Posted By gkrishnag
Hi
can you check if the below is useful

to run the below script

ex: diff.sh <oldfile> <newfile>

#!/bin/sh
#
diff -b -w ${1} ${2} > ${1}.diff
if [[ $? -eq 0 ]] ; then
echo "Added: "...
4,672
Posted By gkrishnag
Hi
what glenn has said is right.. not {$num1} it should be ${num1} .. sorry for typo mistake birdi...
4,672
Posted By gkrishnag
try this below num1=1 num2=2 num3=`expr...
try this below
num1=1
num2=2
num3=`expr {$num1} + {$num2}`
echo $num3
1,614
Posted By gkrishnag
Display ???
Hi

I have question?

whne i do echo "I am fine" - - The result displays on the left hand side of the screen, i want to make the result to display at the center of the screen
ex:
I am fine - -...
1,448
Posted By gkrishnag
Hi
now if i remove the "done"

i get the belwo error..

/home/cvs/gkc ->diff1.sh 2047sourcefiles.txt 2048sourcefiles.txt
Files were added/removed
diff1.sh[12]: 2047sourcefiles.txt.diff: cannot...
1,969
Posted By gkrishnag
Thanks...
That works..thanks
1,448
Posted By gkrishnag
error in script???
Hi

I ahve the below script.. though i am getting the requried result, i am geeting the below error while executing the below script

#!/bin/sh
#
diff -b -w ${1} ${2} > ${1}.diff
if [[...
1,969
Posted By gkrishnag
Case ???
Hi

I have the following case satement

echo "1 \n 2 \n 3 \n"
read i

case $i in
1) my statement;;
2) my statement;;
3) my statement;;
esac

The question i have is after executing "my...
1,304
Posted By gkrishnag
Cosmatic changes???
Build and Deployment:

1 Delete Amisys Files

2 Run the below script on olorin

3 Copy the Help Files

4 Export path

5 Execute Mass_all.sh & Ant

when i execute my.sh
echo " ...
5,308
Posted By gkrishnag
Hi
the how would i over come the issue
6,256
Posted By gkrishnag
wait / sleep what to use???
Hi

I have a script, where i need to execute the follwoing scripts/commands in my script. but those should be executed one by one

cd /aa/205/jams
.cmd/mass_all.sh - -> execution of this will...
5,308
Posted By gkrishnag
Export path ????
Hi

I have the below script:

read path
if [ $path = 203 ] || [ $path = 204 ] || [ $path = 205 ]; then
cd /aa/$path/amisys
export...
3,536
Posted By gkrishnag
Thanks..
that works..thank you
Showing results 1 to 25 of 51

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