I am trying to write a script that will allow me to do a bdf then do a test for a percentage that is 90% or greater. If the test is true then i want to send a message to myself and one other person.
Any suggestions ? ? ?
Thanks.
....svp (6 Replies)
Hi,
I have written a funtion which taken bdf output and put's in a file.
The idea is to grep a areas which greater then 80% and echo the same on the system. However the script I have written fails with the error :-
+ awk $0 !~ /^F/
+ awk {print $5"\t" $6}
+ sed s/%//
+ 1> /tmp/bdflist}... (3 Replies)
Hi all
i am working on script which uses "bdf" output to create excel sheet now when i check "Total" "Used" & "Available" i found that except root everywhere
used + available != total
here is example :
part from bdf output :
filesystem-total-used-available-%used-Mounted on
... (4 Replies)
I have this line in a sh script:
bdf | grep /var/opt/vgdb | tr -s " " | cut -f4,6 -d" " | awk '{print $2" "$1}' > vgdb_free_space.txt
if I run that line in the shell it works fine
but when I ran the script got this error:
add_database_files.sh: line 83: bdf: command not found
also I tried... (4 Replies)
I have another script which I found also on the net.
I keep getting an error:confused::
Here is the script for it:
{/usr/bin/bdf -l |awk '$0 !~ /^F/' |awk '{print $5"\t" $6}'| sed 's/'%'//' >/tmp/b
dflist}
panic ()
{while read percent dir; do
if ]
then ... (16 Replies)
Hi all,
When I use BDF command on this particular server, it outputs mostly normal stuff. However, there is one directory it can't read at all.
Also, it doesn't seem to exist.
When I BDF my file system with a small panic script (it happens even if you use just the bdf command):
As you... (17 Replies)
hi,
bdf command hangs but before it, it lists all the fstab content, so i cannot find the reason...
could anybody give me any clue??
thanks a lot for your attention.
regards
Pablo
i attach syslog
Jan 14 16:30:00 sv23 vmunix: hp_dlpi_wput:Received an unrecognized primitive: 101d... (7 Replies)
Hello all,
First I have an old HP-UX box(11.21) for which I need to implement file-system utilization monitoring. I choosed to use bdf and a simple for loop. However sometimes the output of bdf is as this one(this is actually form linux but the idea is the same)
Filesystem ... (4 Replies)
Hi guys, I have to make an output of several databases we've got running on our system with the command bdf. This has to be done every 3 months. I want to put it in an scriptfile and trigger it in crontab. In the output it must display the differences in diskspace between these three monts. Any... (3 Replies)
Discussion started by: djmental
3 Replies
LEARN ABOUT SUSE
bdf2gdfont.pl
BDF2GDFONT(1) User Contributed Perl Documentation BDF2GDFONT(1)NAME
bdf2gdfont.pl - Convert X11 "BDF" fonts into a loadable font format for GD.
SYNOPSIS
% bdf2gdfont.pl courR12.bdf > courR12.fnt
DESCRIPTION
This script converts BDF-style X11 font files into a format that can be loaded by the GD module using the GD::Font->load() method. There
are a number of ways to obtain BDF fonts.
1. The font is already present on your system.
Some BDF fonts can be found in the standard X11R6 distribution. This script will automatically uncompress gzipped font files if their
extension ends with .gz (the gunzip program must be on your path).
2. From a font server.
The "fstobdf" utility, a standard X11 utility, will read a named font from the font server of your choice and return it in BDF format.
You can pipe it to bdf2gdfont.pl:
fstobdf -s fontserverhost:7100 -fn 8x16 | bdf2gdfont.pl > newfont.fnt
Use xlsfonts to find out what fonts are available. Most fonts will have long names like
-B&H-LucidaTypewriter-Bold-R-Normal-Sans-18-180-75-75-M-110-ISO8859-10.
3. Using the pcf2bdf utility.
Some fonts are only available in PCF (compiled) format. To obtain these, you can either turn on a font server and follow recipe (2),
or use TAGA Nayuta's pcf2bdf utility. This utility is available from http://www.tsg.ne.jp/GANA/S/pcf2bdf/ (page is in Japanese, but you
can find the download link).
Limitations
This font converter only works with fixed-width fonts. If used with a TrueType or proportional font it will die with an error message.
SEE ALSO
GD
AUTHOR
Lincoln Stein <lstein@cshl.org>, heavily adapted from bdftogd from Jan Pazdziora <adelton@fi.muni.cz>.
Copyright (c) 2004 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2010-07-05 BDF2GDFONT(1)