i am using a script to create a file which contains the mail to be sent.in every steo this file grts appended through out the script using several variables.now i want to convert it into html format so that the mail will have better look and feel and the font color and size can be changed.
i tried... (3 Replies)
i need to send 2 diff mail in a single script:Below the script
#!/bin/ksh
echo "enter the number"
read num
if
then
mail -s "test" unix@yahoo.com
mail -s "test" 9886767000@nma.vodafone.in,9916138003@nma.vodafone.in
else
echo "test again"
fi... (5 Replies)
Hi all, I'd like to capture the output from the 'top' command to monitor my CPU and Mem utilisation.Currently my command isecho date
`top -b -n1 | grep -e Cpu -e Mem` I get the output in 3 separate lines.Tue Feb 24 15:00:03
Cpu(s): 3.4% us, 8.5% sy .. ..
Mem: 1011480k total, 226928k used, ....... (4 Replies)
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)
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Hi All,
I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email.
---------------------------------------------------------------------------------------------------------... (2 Replies)
Hi,
I have database table let say t_filenames which stores filenames and date_format in two columns.
e.g.
ABCD_TV_YYYYMMDD.txt YYYYMMDD
ABCD_MOUSE_YYYYMMDDHHMISS.txt YYYYMMDDHHMISS
Actual files are available in a directory (say /tmp), actual files are with... (2 Replies)
Greetings Experts,
I am on AIX using ksh; I am processing the input files and generating a awk_output.txt file using AWK. By reading that awk_output.txt file, I am building a output.html file which is cat and then fed to /usr/sbin/sendmail .When the shell script is triggered through command... (2 Replies)
Hello Guys,
developing a monitoring shell script to have my queue depth count over mail .
here is the sample input file to the script which has all the queue names 1 : DISPLAY QUEUE(*) WHERE (CURDEPTH GT 0)
ZFC8409: Display Queue details.
QUEUE(QL.GVR.ATA.CACHE.01) ... (10 Replies)
Discussion started by: wims
10 Replies
LEARN ABOUT DEBIAN
mojo::asset::memory
Mojo::Asset::Memory(3pm) User Contributed Perl Documentation Mojo::Asset::Memory(3pm)NAME
Mojo::Asset::Memory - In-memory storage for HTTP 1.1 content
SYNOPSIS
use Mojo::Asset::Memory;
my $mem = Mojo::Asset::Memory->new;
$mem->add_chunk('foo bar baz');
say $mem->slurp;
DESCRIPTION
Mojo::Asset::Memory is an in-memory storage backend for HTTP 1.1 content.
EVENTS
Mojo::Asset::Memory can emit the following events.
"upgrade"
$mem->on(upgrade => sub {
my ($mem, $file) = @_;
...
});
Emitted when asset gets upgraded to a Mojo::Asset::File object.
$mem->on(upgrade => sub {
my ($mem, $file) = @_;
$file->tmpdir('/tmp');
});
ATTRIBUTES
Mojo::Asset::Memory inherits all attributes from Mojo::Asset and implements the following new ones.
"auto_upgrade"
my $upgrade = $mem->auto_upgrade;
$mem = $mem->auto_upgrade(1);
Try to detect if content size exceeds "max_memory_size" limit and automatically upgrade to a Mojo::Asset::File object.
"max_memory_size"
my $size = $mem->max_memory_size;
$mem = $mem->max_memory_size(1024);
Maximum size in bytes of data to keep in memory before automatically upgrading to a Mojo::Asset::File object, defaults to the value of the
"MOJO_MAX_MEMORY_SIZE" environment variable or 262144.
METHODS
Mojo::Asset::Memory inherits all methods from Mojo::Asset and implements the following new ones.
"new"
my $mem = Mojo::Asset::Memory->new;
Construct a new Mojo::Asset::Memory object.
"add_chunk"
$mem = $mem->add_chunk('foo bar baz');
my $file = $mem->add_chunk('abc' x 262144);
Add chunk of data and upgrade to Mojo::Asset::File object if necessary.
"contains"
my $position = $mem->contains('bar');
Check if asset contains a specific string.
"get_chunk"
my $chunk = $mem->get_chunk($offset);
Get chunk of data starting from a specific position.
"move_to"
$mem = $mem->move_to('/home/sri/foo.txt');
Move asset data into a specific file.
"size"
my $size = $mem->size;
Size of asset data in bytes.
"slurp"
my $string = mem->slurp;
Read all asset data at once.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Asset::Memory(3pm)