Sponsored Content
Full Discussion: Pegging counter
Top Forums UNIX for Dummies Questions & Answers Pegging counter Post 302826809 by vanand420 on Thursday 27th of June 2013 09:52:01 AM
Old 06-27-2013
thanks a lot friend..!! it worked for me..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

counter

Hi, I need some help. Shell script counter. i need to add condition to check if counter is more than 10 and longer than 3 hours? it runs every 5 mins. it only check count and send email right now. it runs in cron as below gregcount.ksh gregdb 10 > /tmp/gregcount.out 2> /tmp/gregcount.err ... (1 Reply)
Discussion started by: pega
1 Replies

2. Shell Programming and Scripting

grep and counter

Hi, I have such an example(ksh): name1=Example directory=/directory1/Example/directory2 match=$(grep -s '$name1' $directory | wc -l) echo $match But it replies to me: 0 What I expect from it, is to find $name1 in $directory and produce 1 for me as true, not false. (3 Replies)
Discussion started by: chish
3 Replies

3. UNIX for Dummies Questions & Answers

histogram or counter

Dear all, I have numerous dat files (a.dat, b.dat...) containing 500 numeric values each. I would like to count them, based on their range and obtain a histogram or a counter. INPUT: a.dat 1.3 2.16 0.34 ...... b.dat 1.54 0.94 3.13 ..... ... (2 Replies)
Discussion started by: chen.xiao.po
2 Replies

4. Shell Programming and Scripting

List Counter

cat sport_by_month Month : Jan sport :Football sport :Volleyball Month: Feb sport :BasketBall sport: Cricket sport: Fotball Month: Mar Month: APR sport : Bowling sport : Climbing I need your help to have a script that count the number of sports per month and sorted by mont with... (7 Replies)
Discussion started by: Sara_84
7 Replies

5. Shell Programming and Scripting

problem with counter

i having a file xxxxxxxxxxxxxxx1234 ...........value can be change xxxxxxxxxxxxxxx1235 xxxxxxxxxxxxxxxx1236 . . . . xxxxxxxxxxxxxxxxx1300 ...........value can be change i want to cut last four characters of first line and last line and find the missing pattern. output should... (4 Replies)
Discussion started by: sagar_1986
4 Replies

6. Shell Programming and Scripting

Counter

if ;then echo "mrnet greater 5000" gzip /var/log/mrnet.log mv /var/log/mrnet.log.gz /var/log/mrnet.log.1.gz if ];then i=1 let i++ mv /var/log/mrnet.log.1.gz /var/log/vieux-logs/mrnet.log.$i.gz else echo "theres no... (1 Reply)
Discussion started by: Froob
1 Replies

7. Shell Programming and Scripting

Help require with counter

I have this file 1801,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneC2-00,VOE,,,,,,,,,,,,,,, 1802,A1,2012-12-16 15:59:59.995,id2_3,ab=,phoneX1-01,BL,,,,,,,,,,,,,,, 1803,A1,2012-12-16 15:59:59.995,id2_3,ab,phone300,BL,,,,,,,,,,,,,,, 1804,A1,2012-12-16... (4 Replies)
Discussion started by: nikhil jain
4 Replies

8. Shell Programming and Scripting

Record counter

For the following code SEQ=200 awk -v S="$SEQ" ' $0 ~ S { N++ print N } ' "$1"ascii >"$1"search N is printed 8002 times as it occurred 8002 times in file how I could print the counter one time only (20 Replies)
Discussion started by: khaled79
20 Replies

9. Shell Programming and Scripting

Do i miss counter or what

hello this script should show all users and space they used without problem : ls /home >> /root/users.txt cat /root/users.txt | while read line; do space=`du -s /home/$line` echo "$line space is $space" shift done but when i remove pipe ,script run without any output: ls /home... (4 Replies)
Discussion started by: nimafire
4 Replies
ost::MemPager(3)					     Library Functions Manual						  ost::MemPager(3)

NAME
ost::MemPager - The memory pager is used to allocate cumulative memory pages for storing object specific 'persistant' data that is presumed to persist during the life of a given derived object. SYNOPSIS
#include <misc.h> Inherited by ost::Keydata [protected], ost::SharedMemPager, and ost::StackPager [protected]. Classes struct _page Public Member Functions int getPages (void) Return the total number of pages that have been allocated for this memory pool. Protected Member Functions virtual void * first (size_t size) Allocate first workspace from paged memory. virtual void * alloc (size_t size) Allocate memory from either the currently active page, or allocate a new page for the object. char * first (char *str) Allocate a string from the memory pager pool and copy the string into it's new memory area. char * alloc (const char *str) Allocate a string from the memory pager pool and copy the string inti it's new memory area. MemPager (size_t pagesize=4096) Create a paged memory pool for cumulative storage. void purge (void) purge the current memory pool. void clean (void) Clean for memory cleanup before exiting. virtual ~MemPager () Delete the memory pool and all allocated memory. Friends class String class MemPagerObject Detailed Description The memory pager is used to allocate cumulative memory pages for storing object specific 'persistant' data that is presumed to persist during the life of a given derived object. When the object is destroyed, all accumulated data is automatically purged. There are a number of odd and specialized utility classes found in Common C++. The most common of these is the 'MemPager' class. This is basically a class to enable page-grouped 'cumulative' memory allocation; all accumulated allocations are dropped during the destructor. This class has found it's way in a lot of other utility classes in Common C++. Author: David Sugar dyfet@ostel.com Accumulative object memory allocator. Constructor &; Destructor Documentation ost::MemPager::MemPager (size_tpagesize = 4096) [protected] Create a paged memory pool for cumulative storage. This pool allocates memory in fixed 'pagesize' chunks. Ideal performance is achived when the pool size matches the system page size. This pool can only exist in derived objects. Parameters: pagesize page size to allocate chunks. virtual ost::MemPager::~MemPager () [protected], [virtual] Delete the memory pool and all allocated memory. Member Function Documentation virtual void* ost::MemPager::alloc (size_tsize) [protected], [virtual] Allocate memory from either the currently active page, or allocate a new page for the object. Parameters: size size of memory to allocate. Returns: pointer to allocated memory. Reimplemented in ost::SharedMemPager. char* ost::MemPager::alloc (const char *str) [protected] Allocate a string from the memory pager pool and copy the string inti it's new memory area. This checks only the last active page for available space before allocating a new page. Parameters: str string to allocate and copy into paged memory pool. Returns: copy of string from allocated memory. void ost::MemPager::clean (void) [protected] Clean for memory cleanup before exiting. virtual void* ost::MemPager::first (size_tsize) [protected], [virtual] Allocate first workspace from paged memory. This method scans all currently allocated blocks for available space before adding new pages and hence is both slower and more efficient. Parameters: size size of memory to allocate. Returns: pointer to allocated memory. Reimplemented in ost::SharedMemPager. char* ost::MemPager::first (char *str) [protected] Allocate a string from the memory pager pool and copy the string into it's new memory area. This method allocates memory by first searching for an available page, and then allocating a new page if no space is found. Parameters: str string to allocate and copy into paged memory pool. Returns: copy of string from allocated memory. int ost::MemPager::getPages (void) [inline] Return the total number of pages that have been allocated for this memory pool. Returns: number of pages allocated. void ost::MemPager::purge (void) [protected] purge the current memory pool. Reimplemented in ost::SharedMemPager, and ost::StackPager. Friends And Related Function Documentation friend class MemPagerObject [friend] friend class String [friend] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::MemPager(3)
All times are GMT -4. The time now is 06:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy