10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying to find a word from a file in loop.
while read i; do
DB_Name=$i
awk '{for(i=1;i<=NF;i++)if($i~/$DB_Name/)print $(i)}' $BTEQ_NAME > $DB_Name_TableList.txt
done <Param.txt
here Param.txt contents data as
ODS_TARGT_RECV
FIN_TARGT... (7 Replies)
Discussion started by: Shilpi Gupta
7 Replies
2. Shell Programming and Scripting
HI I ma using mpstat and sar commands to check the cpu utilisation
but the results are not matching .I dont understand why thisis happening?
$ sar -u 12 5
Linux 2.6.9-89.35.1.ELhugemem (abcd.efgh.com) 03/07/2013
02:43:16 AM CPU %user %nice %system %iowait %idle... (1 Reply)
Discussion started by: ptappeta
1 Replies
3. Shell Programming and Scripting
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Discussion started by: vivek d r
2 Replies
4. Shell Programming and Scripting
Hi Experts,
I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task.
I am running below command to snmpwalk the router..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies
5. UNIX for Dummies Questions & Answers
HI
I am trying to check the status of port using command
/code:
netstat -an | grep port
/Output:
*.2009 *.* 0 0 65535 0 LISTEN
what i am trying to do is
i want to grep only status Wether the port is established/listen if so show ok else... (1 Reply)
Discussion started by: esumiba
1 Replies
6. UNIX for Dummies Questions & Answers
Hi
I am automating my few commands out of which one command is
tail -f running.logs
when i run this command it does not automatically exit and show prompt (#)
what would i do so that it will exit out automatically after few seconds and move to the next command without using
... (4 Replies)
Discussion started by: esumiba
4 Replies
7. Solaris
Hi,
I would like to clearly understand the output of the mpstat command. What is the mutex spins and also context switches? What if we saw that the number of mutex spins is high. Basically, what to look for in the output of the mpstat command? What is wrong and what is ok. what is the value... (3 Replies)
Discussion started by: Pouchie1
3 Replies
8. UNIX for Advanced & Expert Users
I gave mpstat command in my system..
the o/p is like below
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 199 3 198 112 5 78 95 124 55 0 9 25 14 7 54
1 186 2 97 92 1 45 94 121 41 0 220 27 14 5 54
... (2 Replies)
Discussion started by: shahnazurs
2 Replies
9. Programming
Hello Freinds
I have just started off with Unix (TCSH) although I have a pretty sound background with C-programming. Kindly convey any error in foll script.
#include<stdio.h>
#include<math.h>
#define PI 3.142857
main ()
{
float r, A;
printf("Enter the value of radius: ");
scanf(" %f... (12 Replies)
Discussion started by: mahendrakamath
12 Replies
10. UNIX for Dummies Questions & Answers
hello...
i am working in LINUX on a client/server voice communication project!!!
so far i am done wid compiling code for reading/playin sound card and also sending text from server to client.
now i need ur help in using fork()
though i do have basic concept about fork but i need detail help in... (0 Replies)
Discussion started by: TAM
0 Replies