10 More Discussions You Might Find Interesting
1. Red Hat
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies
2. Shell Programming and Scripting
Hi All,
I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form
1). Intercomponents Checking
Passed: All Server are passed.
======================================================================
2). OS version Checking... (9 Replies)
Discussion started by: Optimus81
9 Replies
3. Shell Programming and Scripting
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Discussion started by: aix_admin_007
4 Replies
4. Shell Programming and Scripting
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies
5. Shell Programming and Scripting
Hi,
Below is the script that takes some value from the properties file and then move the file from files folder to output folder based upon the modification time of files(configurable N days value),now at the end I want to show a customised message that if no files are moved then it shows the... (1 Reply)
Discussion started by: rahul125
1 Replies
6. Shell Programming and Scripting
I have a file with the following content.
> cat /tmp/internetusage.txt
6709.296322 30000 2/7/2010 0.00I am using the following awk command to calculate a percentage from field 1 and 2 from the file.
awk '{ print $1/$2*100 }' /tmp/internetusage.txt
This outputs the value "22.3643" as a... (1 Reply)
Discussion started by: jelloir
1 Replies
7. Red Hat
I have created a custom firewall script in RHEL 4 .Let me explain the steps which i followed .
etho -Internal lan
eth1 -External lan
During the installtion of RHEL 4 ,i enabled Firewall and after booting to x windows i selected enable firewall and defined the defined and customised ports... (0 Replies)
Discussion started by: sud.tech
0 Replies
8. Shell Programming and Scripting
how to make a line BLINKING in output and also how to increase font size in output
suppose in run a.sh script
inside echo "hello world "
i want that this should blink in the output and also
the font size of hello world should be big ..
could you please help me out in this (3 Replies)
Discussion started by: mail2sant
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am taking an output and redirecting it to a file name
and this is a hourly or daily process , in this case, i want my file output as
some logoutput_date_time.txt
how can i form the file name like this
for eg
i am running this command now, so
tail -f... (1 Reply)
Discussion started by: vasikaran
1 Replies
10. UNIX for Dummies Questions & Answers
I am going to build some commands/functions for common tasks that I have to perform (things like searching a filesystem for a certain string in a file).
I intend to write these as unix scripts. Then adding the location of these to my path.
How can I ensure that the variables specified when... (7 Replies)
Discussion started by: peter.herlihy
7 Replies
HTML::FormatPS(3) User Contributed Perl Documentation HTML::FormatPS(3)
NAME
HTML::FormatPS - Format HTML as PostScript
SYNOPSIS
use HTML::TreeBuilder;
$tree = HTML::TreeBuilder->new->parse_file("test.html");
use HTML::FormatPS;
$formatter = HTML::FormatPS->new(
FontFamily => 'Helvetica',
PaperSize => 'Letter',
);
print $formatter->format($tree);
Or, for short:
use HTML::FormatPS;
print HTML::FormatPS->format_file(
"test.html",
'FontFamily' => 'Helvetica',
'PaperSize' => 'Letter',
);
DESCRIPTION
The HTML::FormatPS is a formatter that outputs PostScript code. Formatting of HTML tables and forms is not implemented.
You might specify the following parameters when constructing the formatter object (or when calling format_file or format_string):
PaperSize
What kind of paper should we format for. The value can be one of these: A3, A4, A5, B4, B5, Letter, Legal, Executive, Tabloid,
Statement, Folio, 10x14, Quarto.
The default is "A4".
PaperWidth
The width of the paper, in points. Setting PaperSize also defines this value.
PaperHeight
The height of the paper, in points. Setting PaperSize also defines this value.
LeftMargin
The left margin, in points.
RightMargin
The right margin, in points.
HorizontalMargin
Both left and right margin at the same time. The default value is 4 cm.
TopMargin
The top margin, in points.
BottomMargin
The bottom margin, in points.
VerticalMargin
Both top and bottom margin at the same time. The default value is 2 cm,
PageNo
This parameter determines if we should put page numbers on the pages. The default value is true; so you have to set this value to 0 in
order to suppress page numbers. (The "No" in "PageNo" means number/numero!)
FontFamily
This parameter specifies which family of fonts to use for the formatting. Legal values are "Courier", "Helvetica" and "Times". The
default is "Times".
FontScale
This is a scaling factor for all the font sizes. The default value is 1.
For example, if you want everything to be almost three times as large, you could set this to 2.7. If you wanted things just a bit
smaller than normal, you could set it to .92.
Leading
This option (pronounced "ledding", not "leeding") controls how much is space between lines. This is a factor of the font size used for
that line. Default is 0.1 -- so between two 12-point lines, there will be 1.2 points of space.
StartPage
Assuming you have PageNo on, StartPage controls what the page number of the first page will be. By default, it is 1. So if you set this
to 87, the first page would say "87" on it, the next "88", and so on.
NoProlog
If this option is set to a true value, HTML::FormatPS will make a point of not emitting the PostScript prolog before the document. By
default, this is off, meaning that HTML::FormatPS will emit the prolog. This option is of interest only to advanced users.
NoTrailer
If this option is set to a true value, HTML::FormatPS will make a point of not emitting the PostScript trailer at the end of the
document. By default, this is off, meaning that HTML::FormatPS will emit the bit of PostScript that ends the document. This option is
of interest only to advanced users.
SEE ALSO
HTML::Formatter
TO DO
o Support for some more character styles, notably including: strike-through, underlining, superscript, and subscript.
o Support for Unicode.
o Support for Win-1252 encoding, since that's what most people mean when they use characters in the range 0x80-0x9F in HTML.
o And, if it's ever even reasonably possible, support for tables.
I would welcome email from people who can help me out or advise me on the above.
COPYRIGHT
Copyright (c) 1995-2002 Gisle Aas, and 2002- Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
AUTHOR
Current maintainer: Sean M. Burke <sburke@cpan.org>
Original author: Gisle Aas <gisle@aas.no>
perl v5.12.1 2004-06-02 HTML::FormatPS(3)