04-23-2002
Either way is good. Script may be better.
If the log file is created at the same time every day, you can setup a cron to mail the results to you.
Or You can add a line to the HOSTUMP script at the end to mail the file to you when it executes. If the file is created at different times of the day or odd increments.
Here is a link to a very good script to add attachments to mail messages. Not mine but very good script for attachments in UNIX.
https://www.unix.com/showthread.php?s...6179#post16179
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
All,
I'm having difficulty using a variable as the body of an e-mail; I suspect it has to do w/quoting, but am not sure. Right now I have separate functions for sending information and for sending errors. I'd like to set a variable (BODY) to use as input to mailx so I can have a generic function... (3 Replies)
Discussion started by: GregWold
3 Replies
2. Shell Programming and Scripting
Hello:
I have a script that requires the use of DOY (as a variable) instead of YY/MM/DD. I already obtained these parameters from downloaded files and stored them as variables (i.e. $day, $month, $year).
Is there any simple script that I could incorporate in mine to do this job?
Regards,
... (8 Replies)
Discussion started by: aabrego
8 Replies
3. Shell Programming and Scripting
Hi folks,
I need to write a script that should activate a process according to the current hour.
The process should be activatet only if the hour is between midnight (00:00) and 07:00.
How should I create the condition?
Thanks in advance,
Nir (2 Replies)
Discussion started by: nir_s
2 Replies
4. Solaris
Hi,
We have Solaris10.2.3 server. If we execute command `date` on Command Line Promt it shows time -
>Tue Jun 23 11:35:55 BST 2009 - which is correct
However if the command is executed through cron it gives -
>Tue Jun 23 10:35:55 ESTEDT 2009 - which is wrong
Request you to help me in... (1 Reply)
Discussion started by: sk2304
1 Replies
5. Shell Programming and Scripting
Hi all,
I need to send a variable value in the script through mailx. Please find the script below but its not working.
agents.sh:
agents=`grep "Tot Agents " snapshot.dbm`
if (( $? == 0 )); then
mailx abc@gmail.com $agents
fi (3 Replies)
Discussion started by: db2cap
3 Replies
6. Shell Programming and Scripting
Hi ,
I want to add date to the subject of the email. I am using mail and used
-s "SQL Loader was not able to load enid on `date` due to data error"
But it didnt work. can any one help me ??
Thanks
Sithara (1 Reply)
Discussion started by: sithara
1 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to add one day to the busdt variable i am extracting from a file (DynamicParam.env). I am deriving the busdt as below.
Is there any function which I can use to derive as below.
If busdt=20120910, then the new derived variable value should be 20120911
If... (2 Replies)
Discussion started by: dsfreddie
2 Replies
8. Shell Programming and Scripting
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date
#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s <<-EOF
from_date="12-Jan-2015 12:02:09"
to_date="24-Jan-2015 13:02:09"
echo \$from_date
echo... (7 Replies)
Discussion started by: raj48
7 Replies
9. UNIX for Beginners Questions & Answers
Hi
Newbie here with first post. I've got a shell script (ksh) whereby I run a SQL*Plus script and output the results to a file. I then check the output file in an if statement that looks like this:
if ]; then
export GAPNUM=`awk '{print $4}' $OUTFILE`
if ] then
mailx -s... (10 Replies)
Discussion started by: ltzwoman
10 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
LEARN ABOUT DEBIAN
claws-mail-attach-remover
CLAWS-MAIL-ATTACH-REMOVER(1) General Commands Manual CLAWS-MAIL-ATTACH-REMOVER(1)
NAME
claws-mail-attach-remover -- Attachments remover from mails
DESCRIPTION
This manual page documents briefly the claws-mail-attach-remover
This manual page was written for the Debian distribution because the original program does not have a manual page.
claws-mail-attach-remover is a plugin (loadable module) for the Claws Mail mailer.
Enables the removal all of attachments from emails. When right-clicking a message on summary view, choose ``Remove attachments'' from the
displayed submenu.
USAGE
Before using a plugin you must instruct Claws Mail to load it on startup.
For this you must go ``Configuration'' menu on main window toolbar, open ``Plugins...'' dialog, click on the ``Load plugin...'' button and
select the plugin file, named att_remover.so, and press the ``Open'' button.
BUGS
There is no way you can select individual attachments for removal. It's all or nothing.
SEE ALSO
claws-mail (1), claws-mail-extra-plugins (1).
AUTHOR
claws-mail-attach-remover was written by Colin Leroy colin@colino.net
This manual page was written by Ricardo Mones mones@debian.org for the Debian system (but may be used by others). Permission is granted to
copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
CLAWS-MAIL-ATTACH-REMOVER(1)