Sponsored Content
Full Discussion: memory full warning message
Top Forums Shell Programming and Scripting memory full warning message Post 302204337 by unSpawn on Wednesday 11th of June 2008 10:29:02 AM
Old 06-11-2008
You commented out your 'set -x'. If you left it, you could have seen what happened. Do that and see if you understand what's happening. BTW, an easier Ksh-safe example of what you're trying to do could be
Code:
thresh=20; df|awk '/\/dev\/[sh]d/ {print $1, $5}'|while read part perc; do
 [ ${perc//\%/} -ge $thresh ] && echo $part $perc over $thresh
done

Also please use "better" thread titles as "memory full warning message" is not what yours is about, it's just scripting errors.
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Warning Message.

I have had trouble with my PC, due to construction failure I from my dealer or a power-blast over the net I had a broken MotherBoard, CPU and Memory, So I had to get new ones. Now I'm having a 2000Mhz CPU an ASUS P4S... {I think it's P4S500} and new DDR- memory My PC gives a warning-message... (3 Replies)
Discussion started by: Silver
3 Replies

2. AIX

Printer Memory Message

Hello Everyone, I received the following (root) email. Does anyone know what causes this and how I can find the offending printer? Thanks in advance. Jim Message 2: From daemon Wed Nov 30 09:51:07 2005 Date: Wed, 30 Nov 2005 09:51:07 -0800 From: daemon To: root (2 Replies)
Discussion started by: jlslhills
2 Replies

3. Filesystems, Disks and Memory

Memory full (waiting)

Hi When I launch topas I have this result I have a memory problem. I don't know how see the process which waiting. How can I do that? Thanks all!!! (0 Replies)
Discussion started by: Castelior
0 Replies

4. AIX

AIX 5.3 errpt full of message: DISK OPERATION ERROR

Hi All, Can anyone explain me the meanning of the following errors: LABEL: SC_DISK_ERR2 IDENTIFIER: B6267342 Description DISK OPERATION ERROR Probable Causes DASD DEVICE Failure Causes DISK DRIVE DISK DRIVE ELECTRONICS Recommended Actions PERFORM PROBLEM DETERMINATION... (1 Reply)
Discussion started by: gianlu
1 Replies

5. Programming

shared memory and message queues

Hi, According to my understanding.. When message queues are used, when a process post a message in the queue and if another process reads it from the queue then the queue will be empty unlike shared memory where n number of processess can access the shared memory and still the contents remain... (2 Replies)
Discussion started by: rvan
2 Replies

6. Linux

my box can't see full memory

Hi I'be recently installed Virtouzzo on Centos 5 on 16GB box , but the system could only see 4 GB of RAM, I installed the package kernel-PAE, but the virtuozzo kernel still can't see the full memory. even the kernel system can see 16GB of RAM is there any idea bout that ? Thanks (2 Replies)
Discussion started by: Raied
2 Replies

7. Programming

POSIX Message Queue Memory Allocation

Hi, I wanted to know whether the POSIX message queues are statically allocated memory by the kernel based on the parameters specified in the open or as and when we send messages, memory are allocated? Does the kernel reserve the specified memory for the message queue irrespective of whether... (1 Reply)
Discussion started by: sumtata
1 Replies

8. AIX

Memory full

I need second opinion: I have a AIX system (5.3) and it is at 100% usage of ram now how to deal with this, without affecting the system, because it's a production system ? here is the information about the system: bash-3.2# svmon size inuse free ... (4 Replies)
Discussion started by: misterx12345
4 Replies

9. Shell Programming and Scripting

Unable to get full message text from Windows Event Logs

Hi all, . I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able... (2 Replies)
Discussion started by: kar_333
2 Replies
mlib_ImageThresh1_Inp(3MLIB)				    mediaLib Library Functions				      mlib_ImageThresh1_Inp(3MLIB)

NAME
mlib_ImageThresh1_Inp - image thresholding SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImageThresh1_Inp(mlib_image *srcdst, const mlib_s32 *thresh, const mlib_s32 *ghigh, const mlib_s32 *glow); DESCRIPTION
The mlib_ImageThresh1_Inp() function compares each pixel in the image to a threshold value on a per-channel basis. If the pixel is less than or equal to the threshold value, then it is reset to the low output level. If the pixel is greater than the threshold value, then it is reset to the high output level. It uses the following equation: srcdst[x][y][i] = glow[i] if srcdst[x][y][i] <= thresh[i] srcdst[x][y][i] = ghigh[i] if srcdst[x][y][i] > thresh[i] PARAMETERS
The function takes the following arguments: srcdst Pointer to source and destination image. thresh Threshold value. thresh[i] contains the threshold for channel i. ghigh High output level. ghigh[i] contains the high output level for channel i. glow Low output level. glow[i] contains the low output level for channel i. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_ImageThresh1(3MLIB), mlib_ImageThresh1_Fp(3MLIB), mlib_ImageThresh1_Fp_Inp(3MLIB), mlib_ImageThresh2(3MLIB), mlib_ImageTh- resh2_Fp(3MLIB), mlib_ImageThresh2_Fp_Inp(3MLIB), mlib_ImageThresh2_Inp(3MLIB), mlib_ImageThresh3(3MLIB), mlib_ImageThresh3_Fp(3MLIB), mlib_ImageThresh3_Fp_Inp(3MLIB), mlib_ImageThresh3_Inp(3MLIB), mlib_ImageThresh4(3MLIB), mlib_ImageThresh4_Fp(3MLIB), mlib_ImageTh- resh4_Fp_Inp(3MLIB), mlib_ImageThresh4_Inp(3MLIB), mlib_ImageThresh5(3MLIB), mlib_ImageThresh5_Fp(3MLIB), mlib_ImageThresh5_Fp_Inp(3MLIB), mlib_ImageThresh5_Inp(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_ImageThresh1_Inp(3MLIB)
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy