I have a code which will give me the result of the diskspace which reached the threshold limit 70% and am redirecting it to report.txt . The code is given below.
Now i need your help , I need to use IF ELSE condition statment for getting the output as expected. If it reaches the threshold i should get the output which i will get for the above code, But if the server din face any threshold issues i should get the output as "No issues to report".
So In IF condition " Filesystems with 70% and more should get printed" in ELSE condition " If there is no threshold issues it should print like " NO ISSUES" ..
help needed immediately. Thanks for the help in advance
Hi
I'm trying to install gcc and the installation program tells me that I'm out of disk space! I have just installed the os (using the default settings for partitions and sizes) and have only installed apache on the machine. Can it really be out of disk space already?
How do I check how much... (4 Replies)
I know I have posted this question before, but I still just don't understand how to determine disk space. This server is an IBM RS6000 running on AIX version 4.2.1.
I in essence need to know the following if anyone can assist me.
1) I need to know how many drives are configured in the... (2 Replies)
Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Hi Experts.
I had 100% disk full , even though i have removed 2 GB space still dbf command shows 100%.
How to rectify that. Appreciate your prompt help. Thanks (1 Reply)
HI ...
I am New to the Unix...I am trying to write a script to check the disk space.
But i am not able to write it.
I know the command to check the disk space df -k,but unable to write the script..Can any body help me...
Thanks in advance... (3 Replies)
Hi
This is my script for disk space monitoring
clear
if
then
echo "You must be root user to execute the script"
fi
ALERT_LEVEL=10
CONSUMPTION_LEVEL= `df -k | awk {'print $5'} | cut -d '%' -f1 | sed "1 d"`
for i in $CONSUMPTION_LEVEL
do
FILE_SYSTEM=`df -k | awk {'print $1'} |... (3 Replies)
when i check
/export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full.
Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Hi,
I need help in writing unix script for checking space of some directories on the system and also send an email when it reaches the threshold limit.
I have written the followng code;
#!/bin/ksh
ADMIN="me@somewhere.com"
# set alert level 80% is default
THRESHOLD=80
df | grep -E... (5 Replies)
Hi,
I am new to shell scripting, and want to monitor disk space using shell script continously on server, which will shoot mail after crossing threshold limit
Please suggest.
Regards
Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies
LEARN ABOUT HPUX
xchangepointercontrol
XChangePointerControl() XChangePointerControl()
Name
XChangePointerControl - change the pointer preferences.
Synopsis
XChangePointerControl(display, do_accel, do_threshold, accel_numerator, accel_denominator, threshold)
Display *display;
Bool do_accel, do_threshold;
int accel_numerator, accel_denominator;
int threshold;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
do_accel Specifies a boolean value that controls whether the values for the accel_numerator or accel_denominator are set. You can pass
one of these constants: True or False.
do_threshold
Specifies a boolean value that controls whether the value for the threshold is set. You can pass one of these constants: True
or False.
accel_numerator
Specifies the numerator for the acceleration multiplier.
accel_denominator
Specifies the denominator for the acceleration multiplier.
threshold Specifies the acceleration threshold. True or False.
Description
XChangePointerControl() defines how the pointing device functions. The acceleration is a fraction (accel_numerator/accel_denominator)
which specifies how many times faster than normal the sprite on the screen moves for a given pointer movement. Acceleration takes effect
only when a particular pointer motion is greater than threshold pixels at once, and only applies to the motion beyond threshold pixels.
The values for do_accel and do_threshold must be True for the pointer values to be set; otherwise, the parameters will be unchanged. Set-
ting any of the last three arguments to -1 restores the default for that argument.
The fraction may be rounded arbitrarily by the server.
Errors
BadValue accel_denominator is 0.
Negative value for do_accel or do_threshold.
See Also
XChangeActivePointerGrab(), XGetPointerControl(), XGetPointerMapping(), XGrabPointer(), XQueryPointer(), XSetPointerMapping(), XUngrab-
Pointer(), XWarpPointer().
Xlib - Pointers XChangePointerControl()