9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do I go about programming my system? I have access to multiple data bases but no way to operate them (1 Reply)
Discussion started by: C-lo
1 Replies
2. UNIX for Dummies Questions & Answers
I'm not a Linux newbie but this seemed like a pretty n00b question. I am familiar with Postfix/Dovecot setups but now I am looking for the simplest way to access mail on a Linux system, such as the mail that goes to /var/mail/root. I know I can edit /etc/aliases and have the system mail go straight... (6 Replies)
Discussion started by: TayKimchi
6 Replies
3. Shell Programming and Scripting
Hi,
Background: There are 2 servers server1 and server2
In server1 i have my script to perform a functionality from the script in server1 i m calling a script named action in server2. The script action has to check the size of a file in a particular location in server1, if the size of the file... (1 Reply)
Discussion started by: jayii
1 Replies
4. Programming
Hi
Can anyone please help me out in the below requirement,
Need to access the mailbox of any Email server like gmail, yahoo etc.. and access the Inbox and check Emails.
If i have to access gmail Inbox of any user, My Input parameter will be the domain name, Email ID and Password. example... (3 Replies)
Discussion started by: vidhyaS
3 Replies
5. Solaris
We want to get a notification for all unauthorized sudo access via e-mail to our team DL .. whats the way to do it ? (1 Reply)
Discussion started by: fugitive
1 Replies
6. Emergency UNIX and Linux Support
i have configured mail server with postfix with dovecot with no encryption:
When connecting with Thunderbird imap is working fine. when sending email from another domain to this domain again it is fine. but when i want to send mail frommy domain to another it gives me error and this is... (3 Replies)
Discussion started by: majid.merkava
3 Replies
7. Shell Programming and Scripting
I have shell script which will try to login to SQL Plus and retrieve some data, based on the outcome i will proceed further
Below is the content of the file
pebblz02% cat test1.ksh
#! /bin/ksh
dummyvar=`sqlplus -S csm_admin/csm_admin@SIDNAME <<EOF echo hi; exit; EOF`
Error message on... (0 Replies)
Discussion started by: kiranlalka
0 Replies
8. UNIX for Advanced & Expert Users
Hi all,
Is it possible that I can access a webmail inbox using unix shell scripting? If that is possible, can you please give me some tips so that i can proceed further?
Thanks,
Geetha (6 Replies)
Discussion started by: iamgeethuj
6 Replies
9. Shell Programming and Scripting
see the thread
Edit the line with the ###EDIT on it to begin:
print -p d
rather then print -p p (0 Replies)
Discussion started by: serm
0 Replies
binmail(1) General Commands Manual binmail(1)
Name
binmail - send or receive mail among users
Syntax
/bin/mail [+] [-i] [person...]
/bin/mail [+] [-i] -f file
Description
This is the old version 7 UNIX system mail program. The default command is described in and its binary is in the directory The program is
still used to actually deliver a mail message into the users system-wide mailbox ( ), however, the reading of these messages has been
replaced with the program Do not remove from your system.
The command with no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the
mail messages in first-in, first-out order. For each message, it reads a line from the standard input to direct the disposition of the
message.
Issue the following commands from the program prompt:
<CR> 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.
!command Escape to the Shell to do command.
* Print a command summary.
An interrupt normally terminates the command; the mail file is unchanged.
When persons are named, 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 To denote a recipient on a remote system, prefix person by the system name and exclamation mark. For further
information, see
The program sends a message to the screen that there is mail when the user logs in.
When is used to deliver mail, (usually calls to do this), a mailbox is created for the user in the directory if it doesn't already exist.
The mailbox is created with the mode 700 so that only its owner can access it. In addition, the directory has the mode 777 with the sticky
bit set. The mode is 777 so that other mail programs, notably can create the appropriate lock files to prevent another process from writ-
ing to the mailbox at the same time. The sticky bit set on the directory prevents one user from unlinking another user's mailbox.
Options
-f Displays mail messages contained in the specified file (next argument) in place of your mailbox file.
-i Notifies mail to continue after interrupts.
Restrictions
Race conditions sometimes result in a failure to remove a lock file.
Files
/etc/passwd to identify sender and locate persons
/usr/spool/mail/* incoming mail for user *
mbox saved mail
/tmp/ma* temp file
/usr/spool/mail/*.lock lock for mail directory
dead.letter unmailable text
See Also
mail(1), uucp(1c), uux(1c), write(1), sendmail(8)
binmail(1)