UNIX mail blank in the TO address


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users UNIX mail blank in the TO address
# 8  
Old 12-12-2013
i suppose since you are using command line arguments and assigning it to some other variables and when you do not give any one of the argument on command line the next argument becomes that argument


i.e example if you have to pass 4 arguments and if you specify only three then

i.e if suppose u pass 1st 2nd and 4th argument on command line then

the ath argument in above will become 3rd


so it would be better if you can introduce a check and let user know that if he doesny want to specify the to address can u ask then to enter a space in quotes


all pls correct me if im wrong
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

How to send mail with sender mail address and name?

Hi, I am trying to send a mail using "mail" command in unix. I wanted to give sender name and sender address. I tried different options ,but still it shows only mail address(No name). mail -s "Alert mail : Nothing running !!!" $email -- -F"Mail Alert" -fno-reply@alert.com But I am getting... (4 Replies)
Discussion started by: jaggy
4 Replies

2. Shell Programming and Scripting

mail using mail address in a file

I have a file which contains few email address. I have few scripts which use the same mail address. so if any change in mail id like if any user do not want to receive the mail i can just edit a single file instead of many scripts. So i want the scripts to use that file. How can this be done. (2 Replies)
Discussion started by: gpk_newbie
2 Replies

3. Shell Programming and Scripting

Mail with From Address

hello all When i send an email using "mail" command, it is received by intended receiver but From Adress is getting displayed as user@hostname. Is there any way to change the From address of Email to xxx@bbb.com? Apprecite your response (2 Replies)
Discussion started by: forums123456
2 Replies

4. Shell Programming and Scripting

UNIX Script to query Active Directory: give cn (NT login name) and receive mail (Email address)

Hi folks I need to write UNIX script (with ldapsearch) to query Active Directory. Input is NT login name and output is Email address. Attached a screenshot of Sysinternals "AD Explorer". I need to do the same in CLI. http://i.imgur.com/4s6FB.png I am absolute LDAP/ldapsearch noob. (0 Replies)
Discussion started by: slashdotweenie
0 Replies

5. Shell Programming and Scripting

Unix mail with blank line on variable

I am testing a ksh script for email. In the subject/content of the mail there is some dynamic variables like date and charges. However these variables occupied the entire line erase other in that particular line For e.g. there is a mail message: This mail is intent... Your total... (2 Replies)
Discussion started by: balaji.rengaraj
2 Replies

6. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

7. HP-UX

Sending msg From Unix Server to an E-mail Address

Dear Brothers in Unix I would like to change some HP-UX settings in order that the system send a message to root it should be copied to my e-mail address in Microsoft Exchange Server. Please can you help me. Best Regards and thanks in advance Gege (2 Replies)
Discussion started by: cgege
2 Replies

8. AIX

Change sender e-mail address

When sending emails to the outside world, aix present itself as d_prod@production1.pdc.itercom.org. This is causing some issue with our e-mail server. So we need to change the name to d_prod@itercom.org... Does any one know how this can be accomplished? Thank you (3 Replies)
Discussion started by: cchiang12
3 Replies

9. What is on Your Mind?

Tracing an e-mail address

Not sure if this is the right place to post this, but I thought I'd start here. Not really a Unix question, but I'm hoping the gurus here can help me in an area I know little about. Someone got one of my credit card numbers. Tried to use it to charge a bunch of stuff over the internet. The... (4 Replies)
Discussion started by: denverd0n
4 Replies
Login or Register to Ask a Question
ISBLANK(3)						   BSD Library Functions Manual 						ISBLANK(3)

NAME
isblank -- blank-space character test LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <ctype.h> int isblank(int c); DESCRIPTION
The isblank() function tests for the standard blank-space characters. The standard blank-space characters are the following: ' ' Space character. Horizontal tab. In the ``C'' locale, isblank() returns true only for the standard blank-space characters. RETURN VALUES
The isblank() function returns zero if the character tests false and returns non-zero if the character tests true. SEE ALSO
ctype(3), isalnum(3), isalpha(3), isascii(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3), isxdigit(3), stdio(3), toascii(3), tolower(3), toupper(3), ascii(7) CAVEATS
The argument to isblank() must be EOF or representable as an unsigned char; otherwise, the behavior is undefined. See the CAVEATS section of ctype(3) for more details. BSD
April 17, 2008 BSD