You can use the mail command to read the mail, and while in it use the d option to delete the mail. The mail file is in /var/mail/$LOGNAME, so alternatively you can trash it all by adding this to your .profile:
The only way I could suppress the message completely when opening Terminal, was to run touch ~/.hushlogin once, but that suppresses every login / profile message (including, for example, the MOTD).
In your profile, you can add unset MAILCHECK to prevent any new mail messages appearing while you are using Terminal.
Hi,
There are two scripts. The second script is called from the first one. These will create two processes on unix. In the second script, there is a read statement in the while loop.
Under unexpected conditions, at the time of reading response from the user, if the terminal hungup happens,... (1 Reply)
If I do:
cat file | write user
I can cat a file to a users terminal. My question is, how can this user read the input and cat it into a file?
I tried the reverse:
read | file
or
read > file
etc.
But it didn't work. (1 Reply)
I have recently taken over a UNIX system from another programmer and am just beginning to learn UNIX.
When I enter the MAIL command, the data scrolls off the screen for five minutes. Some of it is several years old.
Can I tell the MAIL command to give me the last few items or the last few... (1 Reply)
hi
how to read terminal command,
just i want to read all command which write on terminal
so please tell me any system call, api avilable in c for above purpose (6 Replies)
I want to get the terminal attributes such as ,
terminal width
terminal height
current cursor position
Can I use ioctl function.
Please help me how to use this function to get these details..
If possible please explain with a sample code.
I'm very new to UNIX progrmming....
Thanks... (1 Reply)
Hi All,
Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com) and save it as a text file in a unix directory ?
Thanks
PRKS
---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ----------
I am using ksh (1 Reply)
Hi All! I would like your assistance with an issue that I have been having with OS X (Snow Leopard 10.6.8) and sending mail through the Terminal.
I had been trying to send mail from Terminal to my GMail account from my home, where I have a Verizon DSL Internet connection routed through a... (0 Replies)
Hi,
I have T5240/M9000 servers running Solaris 10.
I want to manage root password from terminal only using scadm command.
Can somebody help me on this? Which package do I need to install and what all configuration need to be done?
Thanks,
Prashant (1 Reply)
The Mail not sent through terminal by using following command,
mail -s " check " upload.xxx@example.com> msg.txt
By listing the location of following ouputs,Please check this
# ls -ld / /etc/ /etc/mail
drwxr-xr-x 30 root root 4096 Sep 18 17:56 /
drwxr-xr-x 89 root root 12288 Sep... (14 Replies)
Discussion started by: kannansoft1985
14 Replies
LEARN ABOUT SUNOS
biff
biff(1B) SunOS/BSD Compatibility Package Commands biff(1B)NAME
biff - give notice of incoming mail messages
SYNOPSIS
/usr/ucb/biff [y | n]
DESCRIPTION
biff turns mail notification on or off for the terminal session. With no arguments, biff displays the current notification status for the
terminal.
If notification is allowed, the terminal rings the bell and displays the header and the first few lines of each arriving mail message. biff
operates asynchronously. For synchronized notices, use the MAIL variable of sh(1) or the mail variable of csh(1).
A `biff y' command can be included in your ~/.login or ~/.profile file for execution when you log in.
OPTIONS
y Allow mail notification for the terminal.
n Disable notification for the terminal.
FILES
~/.login User's login file
~/.profile User's profile file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), mail(1), sh(1), attributes(5)SunOS 5.10 14 Sep 1992 biff(1B)