02-20-2012
Use "-gt" insted of symbol ">" .
--Shirish
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys,
I've a problem in the "sed" command used in my shellscripts
This is the problamatic line in my shell script:
sed -e 's/${line1}/${line1_m}/g' prod_hier_1234.txt > test.txt
It doesn't do the job of replacing the string stored in variable 'line1' to 'line1_m'.
However If I replace the... (10 Replies)
Discussion started by: bhagat.singh-j
10 Replies
2. Filesystems, Disks and Memory
Hi all,
I am looking for api to get me system monitoring statictics every 5 minutes.
I am looking at the following statistics:
1. System CPU Usage
2. Process CPU Usage
3. Process Memory Usage
4. I/O Usage for a certain disk.
5. Process I/O bytes/sec utilization.
I have seen very... (2 Replies)
Discussion started by: uiqbal
2 Replies
3. UNIX for Dummies Questions & Answers
I wanna put a LDAP search command into a script and there I have the following problem.
I have these variables in a bash script
com="ldapsearch -LLL -x -W"
node=" -b 'o=me,ou=addressbook,dc=subdomain,dc=dyndns,dc=org'"
uri=" -H ldaps://subdomain.dyndns.org"
user=" -D... (2 Replies)
Discussion started by: borobudur
2 Replies
4. Shell Programming and Scripting
Hi Guru's,
I 'm trying to execute the below given script in Unix. I am having an issue with the script. The output of the script is given below:
#!/bin/bash
File_Home="/home/essftp/Risk"
cd /home/essftp/Risk
rm -f FileList
rm -f credit_risk*
file1=`ls -lt... (4 Replies)
Discussion started by: ranjith_taurean
4 Replies
5. Linux
hello,
i'm having some performance problem on one of my linux machines and i hope someone will be able to help me analyzing the problem.
machine info:
Linux fedora, cpu x 4 cores of 1.6Ghz, 8G memory, 8G swap.
i've enabled sar on my machine and created a graph using ksar utility for... (15 Replies)
Discussion started by: levic
15 Replies
6. Shell Programming and Scripting
Hi all,
Very new to shell scripting so appreciate some help!
There is a process count that I need to monitor, I have the AIX command that gives this value and I've cleaned it up with grep/awk so it only spits out the value I'm interested in:
echo "psc -i 10050 -s RELOAD_SERVICE" | tmadmin... (14 Replies)
Discussion started by: monty77
14 Replies
7. UNIX for Dummies Questions & Answers
#!/bin/sh
date=`date +%y%m%d -d"1 day ago"`
inbound_dir=/vis/logfiles/to_solmis
cp `grep -il ST~856~ $inbound_dir/*$date*` /vis/sumit/in_ASN/
echo 'SENDER,RECEIVER,DATE,TIME,ASNUMBER' > a.csv
for i in /vis/sumit/in_ASN/*
do
... (8 Replies)
Discussion started by: shrima.pratima
8 Replies
8. Shell Programming and Scripting
Hi,
I have used expr command to increment the date.
for e.g.,
case 1 :
echo $(date -d $(echo `expr 20010101 + 1`))
it returns
Tue Jan 2 00:00:00 IST 2001
case 2:
echo $(date -d $(echo `expr 20010101 - 1`))
it returns
date: invalid date `20010100'
please suggest me, how to... (3 Replies)
Discussion started by: nanthagopal
3 Replies
9. IP Networking
Dear gurus of Linux / Unix.
I have a server, which I use to monitoring traffic, the problem that I find is when I run the following command:
probe:~ # sar -n DEV 1
I see that I one second appear info in some interface and in the other second no appear, I don't know what will be the... (0 Replies)
Discussion started by: andresguillen
0 Replies
10. Infrastructure Monitoring
This morning we had an activity on our Nagios server, whereby we inserted new disks into the server, and rebooted the server.
The disk implementation failed, therefore we had to revoke the changes, and rebooted the server once again.
The server was up and running at 6:00 am this morning.... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT OSF1
ldtbread
ldtbread(3) Library Functions Manual ldtbread(3)
NAME
ldtbread - Read an indexed symbol table entry of a common object file
SYNOPSIS
#include <stdio.h> #include <filehdr.h> #include <syms.h> #include <ldfcn.h>
int ldtbread (ldptr, symindex, symbol) LDFILE *ldptr ; long symindex ; pSYMR *symbol ;
DESCRIPTION
The ldtbread routine reads the symbol table entry specified by symindex of the common object file currently associated with ldptr into the
area of memory beginning at symbol.
It returns SUCCESS or FAILURE. If symindex is greater than the number of symbols in the object file or if it cannot read the specified
symbol table entry, ldtbread fails.
The local and external symbols are concatenated into a linear list. Symbols are accessible from symbol index zero to SYM-
HEADER(ldptr).isymMax + SYMHEADER(ldptr).iextMax. The index and iss fields of the SYMR are made absolute (rather than file relative) so
that the routines ldgetname(3), ldgetaux(3), and ldtbread proceed normally given those indices. Only the SYMR part of the external symbol
structure is returned.
NOTE: The first symbol in the symbol table has an index of zero.
The program must be loaded with the object file access routine library libmld.a.
RELATED INFORMATION
ldclose(3), ldgetname(3), ldopen(3), ldtbseek(3), ldgetname(3), ldfcn(4). delim off
ldtbread(3)