Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to use HTML in UNIX Bash Scripting? Post 302903747 by Akshay Hegde on Thursday 29th of May 2014 09:43:49 AM
Old 05-29-2014
Welcome to forums,

This is one way

Code:
$ echo "<html><b>This is bold</b></html>" | mail -a "Content-type: text/html;" -s "Testing" user@domain.com

This User Gave Thanks to Akshay Hegde For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

calling bash from html

I have a bash script (it downloads images and saves them) that I want to call from a link on a web page. I cant seem to make this work:mad: ? It works fine if I call it from command prompt. Any help much apprieciated.... (1 Reply)
Discussion started by: Leahy
1 Replies

2. Shell Programming and Scripting

Remove html tags with bash

Hello, is there a way to go through a file and remove certain html tags with bash? If it needs sed or awk, that'll do too. The reason why I want this is, because I have a monitor script which generates a logfile in HTML and every time it generates a logfile, the tags are reproduced. The tags... (4 Replies)
Discussion started by: dejavu88
4 Replies

3. Shell Programming and Scripting

how to use html tag in shell scripting

Hai friends I have a small doubt.. how can we use html tag in shell scripting code : echo "<html>" echo "<body>" echo " welcome to peace world " echo "</body>" echo "</html>" output displayed like this: <html> <body> welcome to peace world </body> </html> (5 Replies)
Discussion started by: jrex1983
5 Replies

4. Shell Programming and Scripting

html/bash button

Hello everyone I am writing a cgi script in bash/html. I am trying something new with this one I have seperated the html code from the scripting. The html code is found in text files on the drive and the scripting is only one script in the cgi bin and i am using "<select multiple name="state"... (3 Replies)
Discussion started by: wlane7878
3 Replies

5. Shell Programming and Scripting

BASH parsing for html tags

Hello can anyone help me parse this line. <tr><td>United States of America</td><td>Dollar</td><td>43.309</td></tr><tr><td>Japan</td><td>Yen</td><td>0.5579</td></tr> the line above did not break. so i would like to have a result like this United States of America Dollar 43.309 Japan... (3 Replies)
Discussion started by: doomsayer16
3 Replies

6. UNIX for Dummies Questions & Answers

How to generate html reports through LINUX Scripting?

Hi All, I am trying to generate a weekly HTML report using LINUX Scripting. This will have record counts of some files. (like below) touch path/filename.html echo "Weekly Summary Report for Business Date : $P_BUS_DT">path/filename.html export A1=`cat path/filename1.txt |wc -l` echo "A1... (6 Replies)
Discussion started by: dsfreddie
6 Replies

7. Shell Programming and Scripting

Having problem with how to use HTML in Unix shell scripting

Hi All, I'm new to this forum. This is my first question. I'm trying to automate the status related information in our environment. So this is how the output would be. SEGMENT SERVER PORT1 PORT2 PORT3 PORT4 PORT5 ACS acscsa01 up up up up up All... (2 Replies)
Discussion started by: anand.aswini
2 Replies

8. UNIX for Advanced & Expert Users

Do we have any bulletins for HTML in UNIX scripting

I have tried only 4 types of bulletins in Html using unix circle, square,disc,li Do we have any other than these in unix? (2 Replies)
Discussion started by: cassia
2 Replies

9. Shell Programming and Scripting

Issues with awk scripting for HTML tags

Below is the data file(results) contents- 13450708,13470474,US,15 24954,24845,JPN,44 14258992,14365059,US,4 24954,24845,IND,44 I want to send above data sets to email in a tabular format. For that I am using below awk script. Now the challenge I am facing here is - I want to make the... (2 Replies)
Discussion started by: Roseline
2 Replies
HTML::Display::Common(3pm)				User Contributed Perl Documentation				HTML::Display::Common(3pm)

NAME
HTML::Display::Common - routines common to all HTML::Display subclasses __PACKAGE__->new %ARGS Creates a new object as a blessed hash. The passed arguments are stored within the hash. If you need to do other things in your constructor, remember to call this constructor as well : package HTML::Display::WhizBang; use parent 'HTML::Display::Common'; sub new { my ($class) = shift; my %args = @_; my $self = $class->SUPER::new(%args); # do stuff $self; }; $display->display %ARGS This is the routine used to display the HTML to the user. It takes the following parameters : html => SCALAR containing the HTML file => SCALAR containing the filename of the file to be displayed base => optional base url for the HTML, so that relative links still work location (synonymous to base) Basic usage : my $html = "<html><body><h1>Hello world!</h1></body></html>"; my $browser = HTML::Display->new(); $browser->display( html => $html ); Location parameter : If you fetch a page from a remote site but still want to display it to the user, the "location" parameter comes in very handy : my $html = '<html><body><img src="/images/hp0.gif"></body></html>'; my $browser = HTML::Display->new(); # This will display part of the Google logo $browser->display( html => $html, base => 'http://www.google.com' ); AUTHOR
Copyright (c) 2004-2007 Max Maischein "<corion@cpan.org>" LICENSE
This module is released under the same terms as Perl itself. perl v5.10.1 2007-10-20 HTML::Display::Common(3pm)
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy