02-15-2010
Thanks for ur reply. But now I am getting the following error.. :-(
stdin: Value too large for defined data type
Can u pls help me to handle this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i have a database table that automatically logs the errors in the database every 5 mins.
what i want to happen is to come up with a program using unix-c that gets all the information from the log table, i have a flag initially set to zero which means that the error is not yet sent, the... (2 Replies)
Discussion started by: chino_52284
2 Replies
2. Shell Programming and Scripting
how can I send an email in UNIX, attach a file and cc a receipient?
i use the command below to attach a file (this works):
uuencode path/filename filename | mailx -s "subject" addr@host.com
here is how i cc a receipient (this also works):
i have a file named cc.lis and contains:
Hello... (2 Replies)
Discussion started by: tads98
2 Replies
3. Shell Programming and Scripting
Hi
Need guidance on including code to mail a couple of files atached with some subject and mail body !!..
Thanks in advance (3 Replies)
Discussion started by: rosh0623
3 Replies
4. BSD
I have a requirement to send email to a group once I have done some tests. I tried the following from command line:-
mailx -s "Test REsults for today " myname@companyname.com <testresultfile.txt
but the email was not received by anyone
basically I followed the format:
mailx -s... (1 Reply)
Discussion started by: sbabuts
1 Replies
5. HP-UX
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
Discussion started by: sangharsh
7 Replies
6. Shell Programming and Scripting
Hi,
I know that we would be require HTML to change the font and color of the text of the output, if we wnt to send that through the email.
But I have managed to get below code, can someone look into it and let me know if i can acheive my requirement through this kind of code:
Following can... (9 Replies)
Discussion started by: amit.mathur08
9 Replies
7. Shell Programming and Scripting
Hi,
I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.
Please advice on this.
(echo ${MESSAGE};uuencode "$FCP_OUT" "ERROR_REPORT.csv"; uuencode "$VALIDATION_RPT"... (1 Reply)
Discussion started by: contactsmrajesh
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I need to send email from unix in the below format. But the email body is coming all in one single line.
How do i format the below text, so that the body of email is properly formatted.
Please help.
TO: <email id>
CC: <none>
BCC: <none>
Subject: Support: file GENERATION is... (3 Replies)
Discussion started by: abhi_123
3 Replies
9. UNIX for Advanced & Expert Users
Hi,
I am trying to send an output of a script in an email.
I want to know if there is a way to modify the senders email not as my username on the host server but as one of the sender preset on outlook.
I was using
cat email.log | /bin/mailx -c cclist -r myemailid -s "subject" tolistids
... (4 Replies)
Discussion started by: gopajitmalakar
4 Replies
10. Shell Programming and Scripting
can you tell me what is the syntax if I need to keep someone in cc with the below email.
mailx -s "shell script completed successfully" arun@gmail.com < /dev/null (4 Replies)
Discussion started by: ramkumar15
4 Replies
from(1) General Commands Manual from(1)
NAME
from - Shows whom mail messages are from
SYNOPSIS
from [-s sender] [user]
The from command prints out the mail header lines in your mailbox file.
OPTIONS
Prints headers for mail sent by sender. Specifies a mail spool directory.
Use this flag if you want to examine a mailbox in a directory other than /usr/spool/mail, which is the system default.
DESCRIPTION
If user is specified, then user's mailbox is examined instead of your own.
EXAMPLES
To display the message headings in your mailbox, enter: from
The names of the senders and the message dates are displayed. To display the message headings for mail sent by a specific user,
enter: from -s dale
Displays only the message headings of the messages sent from user dale. To display the message headings in a specific user's mail-
box, enter: from dawn
The message headings from user dawn's mailbox are displayed, provided you have read permission for dawn's mailbox.
FILES
User mailbox files.
SEE ALSO
Commands: biff(1), mail(1), mailx(1)
from(1)