10-16-2012
How to use mail
Hi Guys..
Am trying to use mail command to send mail.. But its not working in our LAN. I cant able to send any mail to other localhost.. But i can send and receive mail in my own machine.. Help me ASAP!!
8 More Discussions You Might Find Interesting
1. Programming
How to implement read/write thread. This has to implemented at server side ar at client side? (1 Reply)
Discussion started by: shilpi_gup
1 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
Good day! This is my first UNIX post. :D
Anyways, I would like to seek help from you guys if you know of any UNIX command that will skip a warning message once it is encountered but continue to run the execution.
Ok here's the situation in general:
An encypted file is sent to... (2 Replies)
Discussion started by: jennah_rekka
2 Replies
3. Solaris
Hello friends:
I login to solaris with a username/Password and I can see quite a lot of previous I use dbefore, it accumulates a lot, I hope to output them into a Command.txt file as reference, not copy/paste 1 by 1, is there any way I can collect all commands in batch then put into a file,
... (3 Replies)
Discussion started by: sunnysunnysunny
3 Replies
4. Post Here to Contact Site Administrators and Moderators
Hi Neo , I was searching for Unix Certifications on Google and got u r thread:
"unix-certification-most-needed-these-days.html"
It was a gr8 read. Nice to know ur thoughts.. I m also a newbie to this Unix world and had a gr8 interst in it. I m learning shell scripting and other basics. Would... (2 Replies)
Discussion started by: paras.oriental
2 Replies
5. Shell Programming and Scripting
Hi,
I have a csv file which contains data that looks something like this:
Key1 Key2 Key3 New_Key1 New_Key2 New_Key3
102 30 0 - - -
102 40 1 30 40 50
102 50 2 40 50 ... (4 Replies)
Discussion started by: Nishi_Licious
4 Replies
6. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am new to this forum so any assistance would help.
I am currently trying to develop a script that extract all data from a log file with has the previous day's date.
$ <root@aixtest3> /var/log > more sudo.log
May 13 10:52:10 aixtest3 local2:notice sudo: tbrath : TTY=unknown ; ... (14 Replies)
Discussion started by: Kslew82
14 Replies
8. Solaris
Hello,
We have Windows 10 machine connected to Sparc T5440 server via serial cable.
We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix.
We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies
MAIL(1) General Commands Manual MAIL(1)
NAME
mail - send or receive mail among users
SYNOPSIS
mail person ...
mail [ -r ] [ -q ] [ -p ] [ -f file ]
DESCRIPTION
Mail with no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument -r causes first-in,
first-out order. If the -p flag is given, the mail is printed with no questions asked; otherwise, for each message, mail reads a line from
the standard input to direct disposition of the message.
newline
Go on to next message.
d Delete message and go on to the next.
p Print message again.
- Go back to previous message.
s [ file ] ...
Save the message in the named files (`mbox' default).
w [ file ] ...
Save the message, without a header, in the named files (`mbox' default).
m [ person ] ...
Mail the message to the named persons (yourself is default).
EOT (control-D)
Put unexamined mail back in the mailbox and stop.
q Same as EOT.
x Exit, without changing the mailbox file.
!command
Escape to the Shell to do command.
? Print a command summary.
An interrupt stops the printing of the current letter. The optional argument -q causes mail to exit after interrupts without changing the
mailbox.
When persons are named, mail takes the standard input up to an end-of-file (or a line with just `.') and adds it to each person's `mail'
file. The message is preceded by the sender's name and a postmark. Lines that look like postmarks are prepended with `>'. A person is
usually a user name recognized by login(1). To denote a recipient on a remote system, prefix person by the system name and exclamation
mark (see uucp(1)).
The -f option causes the named file, e.g. `mbox', to be printed as if it were the mail file.
Each user owns his own mailbox, which is by default generally readable but not writable. The command does not delete an empty mailbox nor
change its mode, so a user may make it unreadable if desired.
When a user logs in he is informed of the presence of mail.
FILES
/usr/spool/mail/* mailboxes
/etc/passwd to identify sender and locate persons
mbox saved mail
/tmp/ma* temp file
dead.letter unmailable text
uux(1)
SEE ALSO
xsend(1), write(1), uucp(1)
BUGS
There is a locking mechanism intended to prevent two senders from accessing the same mailbox, but it is not perfect and races are possible.
MAIL(1)