Sponsored Content
Top Forums Shell Programming and Scripting Unable to set end of line in mail command Post 302685643 by pamu on Monday 13th of August 2012 07:26:52 AM
Old 08-13-2012
Quote:
Originally Posted by rogerben
Hi,
The code which you gave is not working. If I give
Code:
mail -s "test mail " "abc@xyz.com" -c "bb@xyz.com"

i have to press . as usual and if i give
Code:
mail -s "test mail " "abc@xyz.com" -c "bb@xyz.com" < file

its not working and it doesnt shows any error


Moderator's Comments:
Mod Comment Please use code tags next time for your code and data.
It is working fine that's why it won't show any error...
try to give some real email address and check...
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

unable to sent mail in html format by mailx command.

I use maix command to sent mails. i can sent only plain text mails. Unable to sent mails in html format. while sending mails in html format, the received mail has the html code only. (17 Replies)
Discussion started by: p_prathaban
17 Replies

2. UNIX for Dummies Questions & Answers

unable to use command line to cd or ls

Hi: I have a script with the next command line >set a=(grep -w "something" textfile.txt | grep -w "anotherthing" | cut -c1-11) In the file textfile.txt there are some file names and their paths so when I use this command line it returns a path, for example /directory, and stores in a. ... (3 Replies)
Discussion started by: bosh
3 Replies

3. UNIX for Dummies Questions & Answers

Unable to send e-mail using mailx command

Hi All, Can you please help me in solving this. I am facing some problem sending mails. If I use like this, I am able to send mail the mail echo "This is an automated e-mail; please do not reply." | mailx -s "Good Morning ." 'abc@xys.com' But if I use like this, then I am unable to send... (1 Reply)
Discussion started by: manas6
1 Replies

4. UNIX for Dummies Questions & Answers

How to set HIGH importance to a mail sent through mailx or sendmail command

I have written a script for sending automated email, reporting the running status of a cron scheduled work. Now, the issue is, my Project Manager wants, the mail should be received with HIGH IMPORTANCE. How can I do that, kindly anybody explain. Thank you so much. (3 Replies)
Discussion started by: mitte_dino
3 Replies

5. Shell Programming and Scripting

Using sed command to change end of line

I am looking to change a data file into a javascript string and this is the code that I am using: sed -i '' -e 's/^/str += "/' -e 's/$/";/' file.xml The first part -e 's/^/str += "/' works as intended, but the second part -e 's/$/";/' adds an additional newline to my file, so that instead of... (3 Replies)
Discussion started by: figaro
3 Replies

6. UNIX for Dummies Questions & Answers

[SOLVED] Command line mail taking too long to send; unable to qualify my own domain name

Hello, I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete. In the below, datestamp is just a simple script to put in a no-white-space date/time stamp. $ datestamp ; mail woodnt; datestamp 02-05-10@193844 Subject: test timer Cc: ... (0 Replies)
Discussion started by: Narnie
0 Replies

7. UNIX for Dummies Questions & Answers

Running set options from the command line and bash command

I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing set you can also use them "on the command line when running a script..." and it lists this in a small table: set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies

8. Shell Programming and Scripting

How to add a line to the end of a set of files without using sed command?

I understand that the SED command reads all the lines in the file before adding a required line to the end of the file. Is there another command that adds a line to the end of files without reading the entire file.... SED is increasing the processing time as the number of lines in each of the... (1 Reply)
Discussion started by: Kanch
1 Replies

9. UNIX for Advanced & Expert Users

Unable to send mail with 'mail' command

I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out. I issue the command: mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message. Specifically, the... (3 Replies)
Discussion started by: tcnm
3 Replies
CLAWS-MAIL-EXTRA-PLUGINS(1)				      General Commands Manual				       CLAWS-MAIL-EXTRA-PLUGINS(1)

NAME
claws-mail-extra-plugins -- Claws Mail extra plugins meta package. DESCRIPTION
claws-mail-extra-plugins is a meta package for installing all extra plugins for the Claws Mail mailer. See below for the corresponding manpages of each installed plugin. SEE ALSO
claws-mail-acpi-notifier (1), claws-mail-attach-remover (1), claws-mail-cache-saver (1), claws-mail-etpan-privacy (1), claws-mail-feeds- reader (1), claws-mail-fetchinfo-plugin (1), claws-mail-html2-viewer (1), claws-mail-maildir-plugin (1), claws-mail-mailmbox-plugin (1), claws-mail-multi-notifier (1), claws-mail-newmail-plugin (1), claws-mail-perl-filter (1), claws-mail-smime-plugin (1), claws-mail-vcalen- dar-plugin (1), claws-mail-synce-plugin (1), claws-mail-attach-warner (1), claws-mail (1). http://www.claws-mail.org/plugins.php (link to URL http://www.claws-mail.org/plugins.php) AUTHOR
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-EXTRA-PLUGINS(1)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy