9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I need a syntax for mailing in unix by using html code file output as body and along with attachment (without using mutt command)
HTML code file : html1.txt
Attachment : attach1.txt
I was using the below codes but they are not working.
( cat html1.txt ; uuencode attach1.txt... (4 Replies)
Discussion started by: Rokkesh
4 Replies
2. UNIX for Dummies Questions & Answers
I have a file that I want to mail out. However, I cannot get the date to print on it.
I've tried the following:
/usr/bin/mail -s "Lists on `date`" myname@company.com</tmp/list
/usr/bin/mail -s "Lists on $(date)" myname@compancy.com</tmp/list
$subj="Lists on $(date)"
/usr/bin/mail -s... (3 Replies)
Discussion started by: newbie2010
3 Replies
3. Shell Programming and Scripting
Hello all,
This is a bit simple but I cannot do it! I have a big table of values between 0 and 1. some cells have NA instead of having any value.
I want to exchange all values with "1" and write "0" for all "NA" .
for changing "NA" to zero I used sed:
sed -i 's/NA/0/g' input.txt
But... (3 Replies)
Discussion started by: @man
3 Replies
4. UNIX for Advanced & Expert Users
Hi Folks,
I have an application which logs get continuously refreshed and made after every 1 second , I want that those logs get mailed to me at my email id sara@somewhere.com
The location is
cd /var/log/abc/log
Please advise the command so that I can mail abc.log at my mailid inbox... (2 Replies)
Discussion started by: SankalpS
2 Replies
5. Shell Programming and Scripting
Hi,
I am totally New to This Scripting Area.We have developed some reports in Bo and User need those reports to be sent through Unix Server (SFTP).
Can any one provide me script for transfering File from one location to other with the requirement like if that file fails to reach destination... (4 Replies)
Discussion started by: Sashanth_S
4 Replies
6. UNIX for Dummies Questions & Answers
is there any option to mail the value from top command directly to the user.. i want the value of cpu usage from six different servers to be send in a single mail..
thanks,
Arun Manas:b: (3 Replies)
Discussion started by: arunmanas
3 Replies
7. HP-UX
We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies
8. Shell Programming and Scripting
I have a mailing problem in UNIX....
MAILT="$1"
MAILTO=`echo $MAILT | tr ';' ','`
CONTENT="/var/www/html/notifier/mailnotify_ccdb.html"
SUBJECT="$2"
CC="man@abc.com"
BCC="ant@abc.com"
(
echo "To : ${MAILTO}"
echo "Cc : ${CC}"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
... (3 Replies)
Discussion started by: rdhanek
3 Replies
9. UNIX for Advanced & Expert Users
Hi,
I need to send an email from an UNIX shell script along with an attachment.
I am working on an HP-UX 11.00 system. The only mailing program which provides adding an attachment to a mail is "pine". However pine is not installed on my system and I cannot install it too due to the server being a... (2 Replies)
Discussion started by: navin
2 Replies
AMQP-PUBLISH(1) RabbitMQ C Client AMQP-PUBLISH(1)
NAME
amqp-publish - Publish a message on an AMQP server
SYNOPSIS
amqp-publish [OPTION...]
DESCRIPTION
Publishes a message to an exchange on an AMQP server. Options allow the various properties of the message and parameters of the AMQP
basic.publish method to be specified.
By default, the message body is read from standard input. Alternatively, the -b option allows the message body to be provided as part of
the command.
OPTIONS
-e, --exchange=exchange name
The name of the exchange to publish to. If omitted, the default exchange (also known as the nameless exchange) is used.
-r, --routing-key=routing key
The routing key to publish with. If omitted, an empty routing key is assumed. A routing key must be specified when publishing to the
default exchange; in that case, accoding to the AMQP specification, the routing key corresponds to a queue name.
-p, --persistent
Use the persistent delivery mode. Without this option, non-persistent delivery is used.
-C, --content-type=MIME type
Specifies the content-type property for the message. If omitted, the content-type property is not set on the message.
-E, --content-encoding=content coding
Specifies the content-encoding property for the message. If omitted, the content-encoding property is not set on the message.
-b, --body=message body
Specifies the message body. If omitted, the message body is read from standard input.
EXAMPLES
Send a short message, consisting of the word "Hello" to the queue "myqueue" via the default exchange:
$ amqp-publish -r myqueue -b Hello
Send some XML data from a file to the exchange "events", with persistent delivery mode, setting the content-type property on the message to
make the data format explicit:
$ amqp-publish -e events -p -C text/xml <event.xml
SEE ALSO
librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.
AUTHOR
The RabbitMQ Team <info@rabbitmq.com>
RabbitMQ C Client 2011-01-01 AMQP-PUBLISH(1)