05-29-2019
Well, as I mentioned in my earlier post you should get an HTML page with proper CSS working before you try to compose that page with AWK.
Anyone can easily learn and should learn basic HTML and CSS.
Spend a day and learn the basics.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello. i want to make an awk script to search an html file and output all the links (e.g .html, .htm, .jpg, .doc, .pdf, etc..) inside it. also, i want the links that will be output to be split into 3 groups (separated by an empty line), the first group with links to other webpages (.html .htm etc),... (8 Replies)
Discussion started by: kyris
8 Replies
2. Shell Programming and Scripting
Hi folks,
I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script.
Thanks in advance (1 Reply)
Discussion started by: sol_nov
1 Replies
3. Shell Programming and Scripting
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=border
--border
Content-Type: text/html
Content-Disposition: inline
<html><body><h2>This text should be displayed with html formatting</h2></body></html>
--border
Content-Type: text/plain
Content-Disposition: attachment
This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies
4. Shell Programming and Scripting
I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server.
Here is what I am currently using: It is possible to add code to add an attachment ??!?
{
... (8 Replies)
Discussion started by: atelford
8 Replies
5. UNIX for Dummies Questions & Answers
Hi all.
Urgent help required. I am trying to send and HTML/PNG fromat graph from UNIX using sendmail. The graph needs to be in the body of the HTML email and NOT an attachment.:wall:
Any ideas and help will be really appreciated.
Best regards,
Willz (6 Replies)
Discussion started by: Willz
6 Replies
6. Shell Programming and Scripting
Hi,
i have the following code in shell named as test3.sh..
#!/bin/sh
. /home/<user>/.profile
export dt=`date "+%d%b%y"`
export tim=`date "+%d%b%y %HM:%MM"`
cd
export WD=`pwd`
SID="<sid>"
export SID
export ORACLE_SID=$SID
export ORACLE_HOME=/oracle/$SID/102_64
export... (4 Replies)
Discussion started by: jassi10781
4 Replies
7. Shell Programming and Scripting
Hello,
I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to send the contents of a file as email body. I am using html email and sendmail option of unix. I am using the below piece of code for the same :
#!/usr/bin/ksh
export MAILTO="email@domain.com"
export SUBJECT="Report"
export BODY="file_directory_path/test_file.txt"... (1 Reply)
Discussion started by: rockygsd
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail.
Below are the 2 parts of the code.
I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
Discussion started by: aster007
6 Replies
10. Shell Programming and Scripting
Hi,
I am having trouble in sending a mail with html body and attachment (csv file). We don't have uuencode or mutt (not allowed to install as well)
The below code is perfectly working for sending the html body alone:
export MAILTO=abc@xyz.com
export CONTENT="/home/abc/list.html"... (2 Replies)
Discussion started by: close2jay
2 Replies
LEARN ABOUT CENTOS
ppi::html
PPI::HTML(3) User Contributed Perl Documentation PPI::HTML(3)
NAME
PPI::HTML - Generate syntax-hightlighted HTML for Perl using PPI
SYNOPSIS
use PPI;
use PPI::HTML;
# Load your Perl file
my $Document = PPI::Document->load( 'script.pl' );
# Create a reusable syntax highlighter
my $Highlight = PPI::HTML->new( line_numbers => 1 );
# Spit out the HTML
print $Highlight->html( $Document );
DESCRIPTION
PPI::HTML converts Perl documents into syntax highlighted HTML pages.
HISTORY
PPI::HTML is the successor to the now-redundant PPI::Format::HTML.
While early on it was thought that the same formatting code might be able to be used for a variety of different types of things (ANSI and
HTML for example) later developments with the here-doc code and the need for independantly written serializers meant that this idea had to
be discarded.
In addition, the old module only made use of the Tokenizer, and had a pretty shit API to boot.
API Overview
The new module is much cleaner. Simply create an object with the options you want, pass PPI::Document objects to the "html" method, and you
get strings of HTML that you can do whatever you want with.
METHODS
new %args
The "new" constructor takes a simple set of key/value pairs to define the formatting options for the HTML.
page
Is the "page" option is enabled, the generator will wrap the generated HTML fragment in a basic but complete page.
line_numbers
At the present time, the only option available. If set to true, line numbers are added to the output.
colors | colours
For cases where you don't want to use an external stylesheet, you can provide "colors" as a hash reference where the keys are CSS
classes (generally matching the token name) and the values are colours.
This allows basic colouring without the need for a whole stylesheet.
css The "css" option lets you provide a custom CSS::Tiny object containing any CSS you want to apply to the page (if you are using page
mode).
If both the "colors" and "css" options are used, the colour CSS entries will overwrite anything contained in the CSS::Tiny object. The
object will also be cloned if it to be modified, to prevent destroying any CSS objects passed in.
Returns a new PPI::HTML object
css
The "css" accessor returns the CSS::Tiny object originally provided to the constructor.
html $Document | $file | $source
The main method for the class, the "html" method takes a single PPI::Document object, or anything that can be turned into a PPI::Document
via its "new" method, and returns a string of HTML formatted based on the arguments given to the "PPI::HTML" constructor.
Returns a string, or "undef" on error.
SUPPORT
Bugs should always be submitted via the CPAN bug tracker
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PPI-HTML>
For other issues, contact the maintainer
AUTHOR
Adam Kennedy <adamk@cpan.org>
Funding provided by The Perl Foundation
SEE ALSO
<http://ali.as/>, PPI
COPYRIGHT
Copyright 2005 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.3 2009-11-16 PPI::HTML(3)