i have added the header also to the script you provided, it is working fine, but I am expecting to get the header over those rows for which the URL or port changes. URL will remain same for few rows and then it change, and once the URL change the header should come,
like in below input you can see the 3 record URL changed.so the header should populate over the third record(validate only server and port )
Dears,
i have user called dellsh
i hope to make this script
when this user recieve email
check the budy of the email about (StatusRequest)
when i find this email contain this subject
run crontab do this job (create file in my home directory called index)
thanks for your attention (1 Reply)
hi all,
how do i email a file in the body of an email rather than as an attachment ??
have a ksh script which i need to read a file and email as part of the body rather than an attachment.
my code is :
uuencode file.log | mailx -s "test"
but this sends file as an attachment.
... (2 Replies)
Dear all-
I have a requirement to send an email via email with body content which looks something below-
Email body contents
--------------------
RequestType: Update
DateAcctOpened: 1/5/2010
Note that header information and data content should be normal text..
Please advice on... (5 Replies)
Hi,
I am using mailx command to send an email and i took the body of the email from a file,
mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile
but now i want to declare the body of the email in the command itself.
I have tried with the following command but... (4 Replies)
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
I have a oracle sh script test.sh
#!/bin/bash
R=`sqlplus -S *****/*********@dfsdf <<ENDOFSQL
set serveroutput on size unlimited;
execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS"','F');
execute DBMS_SNAPSHOT.REFRESH( '"MIS_ADMIN"."MV_SURVEY_UNITS_CENSUS_PART"','F');... (1 Reply)
Hi,
I have written shell program to send email as below -
#!/bin/ksh
filename=`ls -ltrh *.Z`
echo $filename |mailx -s "FOR TESTING" rahul.b@infotech.net
I am getting the email but email body is -
-rw-rw-r-- 1 bahulra dba 173M Mar 22 04:37 corphist.txt.Z -rw-rw-r-- 1 bahulra dba 107M... (3 Replies)
I have fetched a couple of emails and stored then in /fetch/mail/oracle.txt, the displayed content is
Date:
From:
Subject:
To:
Content-Type:
---body -----
---------
Date:
From:
Subject:
To:
Content-Type:
----body -----
------
Date:
From:
I want to retrieve the body only from... (3 Replies)
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)
Hi Team,
While sending the email using the mutt command, mail body not appearing properly and attachment it is showing without line breaks and i used the CSS Style (nowrapper )it is working fine.
in this case how to handle the email body, please help me. (1 Reply)
Discussion started by: bmk123
1 Replies
LEARN ABOUT CENTOS
htcacheclean
HTCACHECLEAN(8) htcacheclean HTCACHECLEAN(8)NAME
htcacheclean - Clean up the disk cache
SYNOPSIS
htcacheclean [ -D ] [ -v ] [ -t ] [ -r ] [ -n ] [ -Rround ] -ppath [-llimit| -Llimit]
htcacheclean [ -n ] [ -t ] [ -i ] [ -Ppidfile ] [ -Rround ] -dinterval -ppath [-llimit| -Llimit]
htcacheclean [ -v ] [ -Rround ] -ppath [ -a ] [ -A ]
htcacheclean [ -D ] [ -v ] [ -t ] [ -Rround ] -ppath url
SUMMARY
htcacheclean is used to keep the size of mod_cache_disk's storage within a given size limit, or limit on inodes in use. This tool can run
either manually or in daemon mode. When running in daemon mode, it sleeps in the background and checks the cache directory at regular
intervals for cached content to be removed. You can stop the daemon cleanly by sending it a TERM or INT signal. When run manually, a once
off check of the cache directory is made for cached content to be removed. If one or more URLs are specified, each URL will be deleted from
the cache, if present.
OPTIONS -dinterval
Daemonize and repeat cache cleaning every interval minutes. This option is mutually exclusive with the -D, -v and -r options. To
shutdown the daemon cleanly, just send it a SIGTERM or SIGINT.
-D Do a dry run and don't delete anything. This option is mutually exclusive with the -d option. When doing a dry run and deleting
directories with -t, the inodes reported deleted in the stats cannot take into account the directories deleted, and will be marked
as an estimate.
-v Be verbose and print statistics. This option is mutually exclusive with the -d option.
-r Clean thoroughly. This assumes that the Apache web server is not running (otherwise you may get garbage in the cache). This option
is mutually exclusive with the -d option and implies the -t option.
-n Be nice. This causes slower processing in favour of other processes. htcacheclean will sleep from time to time so that (a) the disk
IO will be delayed and (b) the kernel can schedule other processes in the meantime.
-t Delete all empty directories. By default only cache files are removed, however with some configurations the large number of directo-
ries created may require attention. If your configuration requires a very large number of directories, to the point that inode or
file allocation table exhaustion may become an issue, use of this option is advised.
-ppath Specify path as the root directory of the disk cache. This should be the same value as specified with the CacheRoot directive.
-Ppidfile
Specify pidfile as the name of the file to write the process ID to when daemonized.
-Rround
Specify round as the amount to round sizes up to, to compensate for disk block sizes. Set to the block size of the cache partition.
-llimit
Specify limit as the total disk cache size limit. The value is expressed in bytes by default (or attaching B to the number). Attach
K for Kbytes or M for MBytes.
-Llimit
Specify limit as the total disk cache inode limit.
-i Be intelligent and run only when there was a modification of the disk cache. This option is only possible together with the -d
option.
-a List the URLs currently stored in the cache. Variants of the same URL will be listed once for each variant.
-A List the URLs currently stored in the cache, along with their attributes in the following order: url, header size, body size, sta-
tus, entity version, date, expiry, request time, response time, body present, head request.
DELETING A SPECIFIC URL
If htcacheclean is passed one or more URLs, each URL will be deleted from the cache. If multiple variants of an URL exists, all variants
would be deleted.
When a reverse proxied URL is to be deleted, the effective URL is constructed from the Host header, the port, the path and the query. Note
the '?' in the URL must always be specified explicitly, whether a query string is present or not. For example, an attempt to delete the
path / from the server localhost, the URL to delete would be http://localhost:80/?.
LISTING URLS IN THE CACHE
By passing the -a or -A options to htcacheclean, the URLs within the cache will be listed as they are found, one URL per line. The -A
option dumps the full cache entry after the URL, with fields in the following order:
url The URL of the entry.
header size
The size of the header in bytes.
body size
The size of the body in bytes.
status Status of the cached response.
entity version
The number of times this entry has been revalidated without being deleted.
date Date of the response.
expiry Expiry date of the response.
request time
Time of the start of the request.
response time
Time of the end of the request.
body present
If 0, no body is stored with this request, 1 otherwise.
head request
If 1, the entry contains a cached HEAD request with no body, 0 otherwise.
EXIT STATUS
htcacheclean returns a zero status ("true") if all operations were successful, 1 otherwise. If an URL is specified, and the URL was cached
and successfully removed, 0 is returned, 2 otherwise. If an error occurred during URL removal, 1 is returned.
Apache HTTP Server 2010-11-20 HTCACHECLEAN(8)