05-26-2008
Quote:
Originally Posted by
Yogesh Sawant
do you want to create web pages having functionality which is missing in bare HTML? If yes, then check out PHP or perl-CGI
If you want to create HTML files from a shell script, then let us know what the HTML would be (maybe a template would help).
Thanks for ur reply. Yes, I want to create HTML files from shell script. yes a template would be of great help.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need (have been asked/order/instructed) to migrate the access of a number of ksh scripts into a html/web page environment. Currently access is with the user logging onto a unix box and accessing the scripts that way. The users are not unix people so I have restricted the access solely to... (4 Replies)
Discussion started by: nhatch
4 Replies
2. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
3. Shell Programming and Scripting
Good day, everyone!
I've got a small question to ask. If I'm getting the value for variable in following way:
LINE=$(grep "search word" myfile)
How can I access the n-th word on this line?
Thank you in advance for any explanations. (4 Replies)
Discussion started by: Nafanja
4 Replies
4. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
5. Shell Programming and Scripting
Hi all,
I'm using awk in a .ksh script to split one file by line prefix into different files (up to 4). The files are named after the prefix in the line, and a sequence no.
Is there any way to get the filenames in to variables too? I need _ftpfile1, _ftpfile2, _ftpfile3 and _ftpfile4 which are... (2 Replies)
Discussion started by: spidermike
2 Replies
6. Shell Programming and Scripting
Hello
I'm trying to develop a shell script that executes commands such as cat / etc / fstab uname, etc. ..... which generates me an output file format html own way.
Currently the shell script with the commands there, I have some notions of html but the generation of my html file is not clean at... (2 Replies)
Discussion started by: ddtseb
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
How might I go about writing a program that will read all input as an HTML file, and subsequently strip all HTML, embedded scripts and style sheets from its input, leaving only text as the output?
I am a beginner, so the simpler, the better.
Thanks for any advice :) (4 Replies)
Discussion started by: Molly.P.
4 Replies
8. Solaris
I am trying to use an awk command within a ksh script but it is not working - I am able to run from command line with no problem. It does not err out - it just does not produce a file with final count.
awk "{s+=$0} END {print s}" es.out > es.cntAny help would be greatly appreciated. Thanks (6 Replies)
Discussion started by: bjdamon
6 Replies
9. Shell Programming and Scripting
RHEL 6.2/Bash shell
root user will be executing the below script. It switches to oracle user and expect to do the following things
A. Source the environment variables for BATGPRD Database (the file used for sourcing is shown below after the script)
B. Shutdown the DB from sqlplus -- The... (13 Replies)
Discussion started by: omega3
13 Replies
10. Shell Programming and Scripting
Hi,
I made a script that displays various fileds of report that are required in csv format and send it on mail(the csv file). Now I want to convert the csv format into html table and then send it on mail.
Reports_Output.csv
Code:... (6 Replies)
Discussion started by: Supriya Singh
6 Replies
LEARN ABOUT DEBIAN
cgi::application::plugin::anytemplate::driver::htmltemplateplugg
CGI
::Application::Plugin::AnyTemplate::Driver::HTMLTemplUserlContributed)CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplatePluggable(3pm)
NAME
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplatePluggable - HTML::Template::Pluggable driver to AnyTemplate
SYNOPSIS
# Load Pluggable and your plugins before using this driver.
use HTML::Template::Pluggable;
use HTML::Template::Plugin::Dot;
DESCRIPTION
This is a driver for CGI::Application::Plugin::AnyTemplate, which provides the implementation details specific to rendering templates via
the HTML::Template::Pluggable templating system.
All "AnyTemplate" drivers are designed to be used the same way. For general usage instructions, see the documentation of
CGI::Application::Plugin::AnyTemplate.
EMBEDDED COMPONENT SYNTAX (HTML::Template::Pluggable)
Syntax
The HTML::Template::Pluggable syntax for embedding components is:
<TMPL_VAR NAME="cgiapp.embed('some_run_mode',
param1,
param2,
'literal string3')"
>
This can be overridden by the following configuration variables:
embed_tag_name # default 'cgiapp'
For instance by setting the following value in your configuration file:
embed_tag_name '__acme'
Then the embedded component tag will look like:
<TMPL_VAR NAME="__acme.embed('some_run_mode')">
The value of "embed_tag_name" must consist of numbers, letters and underscores ("_"), and must not begin with a number.
CONFIGURATION
The HTMLTemplatePluggable driver accepts the following config parameters:
embed_tag_name
The name of the tag used for embedding components. Defaults to "cgiapp".
template_extension
If "auto_add_template_extension" is true, then CGI::Application::Plugin::AnyTemplate will append the value of "template_extension" to
"filename". By default the "template_extension" is ".html".
associate_query
This feature is now deprecated and will be removed in a future release.
If this config parameter is true, then HTMLTemplatePluggable will copy all of the webapp's query params into the template using
HTML::Template's "associate" mechanism:
my $driver = HTML::Template::Pluggable->new(
associate => $self->query,
);
By default "associate_query" is false.
If you provide an "associate" config parameter of your own, that will disable the "associate_query" functionality.
All other configuration parameters are passed on unchanged to HTML::Template.
required_modules
The "required_modules" function returns the modules required for this driver to operate. In this case: HTML::Template.
DRIVER METHODS
initialize
Initializes the "HTMLTemplate" driver. See the docs for "CGI::Application::Plugin::AnyTemplate::Base" for details.
render_template
Fills the "HTML::Template::Pluggable" object with "$self->param" replacing any magic "*embed*" tags with the content generated by the
appropriate runmodes.
Returns the output of the filled template as a string reference.
See the docs for "CGI::Application::Plugin::AnyTemplate::Base" for details.
SEE ALSO
CGI::Application::Plugin::AnyTemplate
CGI::Application::Plugin::AnyTemplate::Base
CGI::Application::Plugin::AnyTemplate::ComponentHandler
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplate
CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplateExpr
CGI::Application::Plugin::AnyTemplate::Driver::TemplateToolkit
CGI::Application::Plugin::AnyTemplate::Driver::Petal
CGI::Application
Template::Toolkit
HTML::Template
HTML::Template::Pluggable
HTML::Template::Plugin::Dot
Petal
Exporter::Renaming
CGI::Application::Plugin::TT
AUTHOR
Michael Graham, "<mgraham@cpan.org>"
COPYRIGHT & LICENSE
Copyright 2005 Michael Graham, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-CGI::Application::Plugin::AnyTemplate::Driver::HTMLTemplatePluggable(3pm)