Sponsored Content
Top Forums Shell Programming and Scripting Unable to set end of line in mail command Post 302685651 by rogerben on Monday 13th of August 2012 07:41:44 AM
Old 08-13-2012
Quote:
Originally Posted by pamu
It is working fine that's why it won't show any error...
try to give some real email address and check...

I tried with real address only and its not sending the mail option. Am getting the file not found error can you pls let me know what is the usage of using "<file" at the end.
Error:
Code:
file: No such file or directory


Last edited by Scott; 08-13-2012 at 09:40 AM.. Reason: Code tags
rogerben
 

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
msgchk(1)						      General Commands Manual							 msgchk(1)

NAME
msgchk - check for messages (only available within the message handling system, mh) SYNOPSIS
msgchk [-help] [-nodate] [-notify all | | | mail | | | nomail] [users ... ] OPTIONS
Prints a list of the valid options for this command. Prints the date when you last read your mail. This is the default behavior of msgchk. The -nodate option can be used of you do not want to print this date. Indicates under what circumstances msgchk should produce a message. There are three legal values: all, mail, and nomail. The default is -notify all, which reports the status of the maildrop regardless of whether it has mail in it or not. The -notify mail option reports the status of the maildrop only if there is mail waiting. The -notify nomail option reports the status of the maildrop only if there is no mail in it. Specifies the source which are checked for mail. The only value allowed is file, which is the user's maildrop. Additional values are supported only for use with other mail systems. DESCRIPTION
The msgchk program checks all known mail drops for mail that is waiting for you. It displays whether you have mail waiting to be read or not and shows the date that you last read your mail. You can check other user's maildrops by specifying their user names as the users argument on the command line. RESTRICTIONS
msgchk does not understand the $MAILDROP environmental variable. If mail is fetched from a location other than /usr/spool/mail/$USER, msgchk will not be able to determine if new mail has arrived. However, inc can still be used to fetch mail when it arrives. For this version, the -source option only supports the value file. Additional values are supported for use only with other mail systems. EXAMPLES
This example shows a user Smith checking his own maildrop: % msgchk Smith: New file source mail waiting ; last read on Tue, 07 Jun 1988 17:21:49 WET The next example shows a user checking the maildrops of two other local users on the same system, Rabb and Jones: % msgchk Rabb Jones Rabb: No file-source mail waiting ; last read on Tue, 07 Jun 1997 13:22:25 WET Jones: New file source mail waiting ; last read on Tue, 07 Jun 1997 17:30:05 WET FILES
The user profile. The system customization file. The user's maildrop. SEE ALSO
inc(1) msgchk(1)
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy