04-18-2007
Try if the below works for u......
##################################
TIMESTAMP=`date +"%m-%d"`
mailx -s "$TIMESTAMP - Hi"
abc@att.com << EOF
`/usr/bin/uuencode /tmp/Test.pdf Test.pdf`
Hi,
See if u able to catch file....
EOF
##################################\
Cheers
ArB
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and, in the same mail, a xls file has to be attached.
I have tried this: the file is correctly attached but the body comes as html source and not formatted. If I do not attach the... (4 Replies)
Discussion started by: stefan.yu
4 Replies
2. UNIX for Dummies Questions & Answers
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command line switch to specify file name of a binary attachment
3. command line or input file to specify... (4 Replies)
Discussion started by: G-Man
4 Replies
3. Shell Programming and Scripting
Hi folks,
I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script.
Thanks in advance (1 Reply)
Discussion started by: sol_nov
1 Replies
4. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
5. Red Hat
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Discussion started by: vickramshetty
2 Replies
6. Shell Programming and Scripting
Hi,
Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement.
---------------------
(uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients
--------------------
I m not able to send any message in the... (4 Replies)
Discussion started by: ashwin3086
4 Replies
7. Shell Programming and Scripting
The below code is not working. I am able to send only inline html or only attachment. When trying to do both, only inline html is sent without attachment. Please help!
#!/bin/ksh
(echo "Subject: Test Mail - HTML Format"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo... (1 Reply)
Discussion started by: thulasidharan2k
1 Replies
8. Shell Programming and Scripting
I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server.
Here is what I am currently using: It is possible to add code to add an attachment ??!?
{
... (8 Replies)
Discussion started by: atelford
8 Replies
9. Shell Programming and Scripting
HI Team,
I used below code to get attachment with HTML body. i having21062013.csv file . but i am getting junk .csv file. Can you please help me out.
export MAILTO=rp908@gmail.com.com
export SUBJECT="Test Waiver Code email"
export BODY=test.html
export ATTACH=21062013.csv... (4 Replies)
Discussion started by: Jewel
4 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
Discussion started by: KRR
7 Replies
LEARN ABOUT DEBIAN
clockdiff
CLOCKDIFF(8) System Manager's Manual: iputils CLOCKDIFF(8)
NAME
clockdiff - measure clock difference between hosts
SYNOPSIS
clockdiff [-o] [-o1] destination
DESCRIPTION
clockdiff Measures clock difference between us and destination with 1 msec resolution using ICMP TIMESTAMP [2] packets or, optionally, IP
TIMESTAMP option [3] option added to ICMP ECHO. [1]
OPTIONS
-o Use IP TIMESTAMP with ICMP ECHO instead of ICMP TIMESTAMP messages. It is useful with some destinations, which do not support ICMP
TIMESTAMP (f.e. Solaris <2.4).
-o1 Slightly different form of -o, namely it uses three-term IP TIMESTAMP with prespecified hop addresses instead of four term one.
What flavor works better depends on target host. Particularly, -o is better for Linux.
WARNINGS
o Some nodes (Cisco) use non-standard timestamps, which is allowed by RFC, but makes timestamps mostly useless.
o Some nodes generate messed timestamps (Solaris>2.4), when run xntpd. Seems, its IP stack uses a corrupted clock source, which is synchro-
nized to time-of-day clock periodically and jumps randomly making timestamps mostly useless. Good news is that you can use NTP in this
case, which is even better.
o clockdiff shows difference in time modulo 24 days.
SEE ALSO
ping(8), arping(8), tracepath(8).
REFERENCES
[1] ICMP ECHO, RFC0792, page 14.
[2] ICMP TIMESTAMP, RFC0792, page 16.
[3] IP TIMESTAMP option, RFC0791, 3.1, page 16.
AUTHOR
clockdiff was compiled by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>. It was based on code borrowed from BSD timed daemon. It is now main-
tained by YOSHIFUJI Hideaki <yoshfuji@skbuff.net>.
SECURITY
clockdiff requires CAP_NET_RAWIO capability to be executed. It is safe to be used as set-uid root.
AVAILABILITY
clockdiff is part of iputils package and the latest versions are available in source form at http://www.skbuff.net/iputils/iputils-cur-
rent.tar.bz2.
iputils-101006 12 April 2011 CLOCKDIFF(8)