03-14-2016
No, it's adding 0 to make it numeric (i.e. drop the % sign).
I'm sorry - I made a typo when writing $5+1 - should read $5+0. Corrected in post#7.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I would like to monitor which users enter my home directory. Is it possible to write a script or code to do this. I donot have admin privileges. I have given read permissions to access my home directory.
Any pointers in this direction is helpful!
Thanks,
Pradeep
Ps: I use the... (1 Reply)
Discussion started by: mnpradeep
1 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
pls help me, i have a problem, how i can find out the disk amount of each harddisk per command (not the on label on the Harddisk)
i need it on HP UX and Sun.
can anybody helb me????
pls
thanks
Scotty (1 Reply)
Discussion started by: scotty
1 Replies
3. Shell Programming and Scripting
Hi,
I'm a teacher in Germany and I want to set up a classroom with Linux 8.1 PCs. Every User should have a Max of 100 MB available space. Now I need a script which tells everyone how much diskspace is used in a certain subdirectory.
It should work like that: User enters a command like... (1 Reply)
Discussion started by: Dansen
1 Replies
4. Shell Programming and Scripting
Hi,
I am using this script to load up my Oracle Databases, but when I log in through Exceed, it hangs. Can anyone tell me what else I need to add to make this work??
Details
****************************************************************************************************... (11 Replies)
Discussion started by: dnkansah
11 Replies
5. Shell Programming and Scripting
Guys, have any idea for the script like this? also to compute w/ decimal.
thanks
a=10
b=20
c=30
d=40
if a < b then ( a -b)*1024 = free space
b + (c -d) = total space
if a > b then (b / d)*1024 = cpu (3 Replies)
Discussion started by: kenshinhimura
3 Replies
6. Shell Programming and Scripting
Hi
I want to check Oracle ASM disk status through a PERL script.
Script flow would be like this ...
1. Its taking diskgroup name in the command line...
2. Connect to Oracle database
3. If connection error send a critical message.
Plz replyyyyyyy...... (1 Reply)
Discussion started by: Harikrishna
1 Replies
7. Shell Programming and Scripting
Hello Allz,
Please review my following script. The purpose of the script is to check the file system every 5 minutes & if any file systems is exceed from 90% then raise an email alert only 1 time.
But the following script not functioning properly, mostly send an email that contain only... (7 Replies)
Discussion started by: telnor
7 Replies
8. Shell Programming and Scripting
dear all,
i want elimination file with disk space for example:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
62G 19G 41G 31% /
/dev/sda1 99M 13M 82M 13% /boot
tmpfs 1014M 0... (2 Replies)
Discussion started by: zvtral
2 Replies
9. Shell Programming and Scripting
Dear Group,
I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies
10. Shell Programming and Scripting
Hi,
While am preparing the script for diskspace for different partitions different threshhold limit. am getting below error:
./test.sh: syntax error at line 5: `space=$' unexpected
Script
====
#!/bin/sh
df -h |grep -v '/oradata2'|grep -v '/orabkp' |grep -v '/oradata5' | awk '{ print $5... (7 Replies)
Discussion started by: Pavan83
7 Replies
LEARN ABOUT HPUX
xmdropsiteregister
XmDropSiteRegister(library call) XmDropSiteRegister(library call)
NAME
XmDropSiteRegister -- A Drag and Drop function that identifies a drop site and assigns resources that specify its behavior
SYNOPSIS
#include <Xm/DragDrop.h>
void XmDropSiteRegister(
Widget widget,
ArgList arglist,
Cardinal argcount);
DESCRIPTION
XmDropSiteRegister identifies the specified widget or gadget as a drop site and sets resource values that define the drop site's behavior.
The routine assigns default values to any resources that are not specified in the argument list. The toolkit generates a warning message
if a drop site is registered with XmNdropSiteActivity set to XmDROP_SITE_ACTIVE and the XmNdropProc resource is NULL.
If the drop site is a descendant of a widget that is registered as a drop site, the XmNdropSiteType resource of the ancestor drop site must
be specified as XmDROP_SITE_COMPOSITE. The ancestor must be registered before the descendant. The drop site is stacked above all other sib-
ling drop sites already registered.
widget Specifies the ID of the widget to be registered.
arglist Specifies the argument list.
argcount Specifies the number of attribute/value pairs in the argument list (arglist).
For a complete definition of DropSite and its associated resources, see XmDropSite(3).
RELATED
XmDisplay(3), XmDropSite(3), XmDropSiteEndUpdate(3), XmDropSiteStartUpdate(3), XmDropSiteUpdate(3), XmDropSiteUnregister(3), and
XmScreen(3).
XmDropSiteRegister(library call)