11-14-2006
Manage Mail
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 days only?
I would like to delete some of the older material? Must it be done one item at a time or can I do it by date or contents?
thank you for your help
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Here's a usefull perl script to trim the wtmp file,
in case it got too big, which happens sometimes, or got curropted (which also happens often).
You could learn from here how to parse the wtmp file...
but of course for just reading its content always simply use "last" like Neo said....
... (0 Replies)
Discussion started by: me2unix
0 Replies
2. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
3. Shell Programming and Scripting
Hi all,
how i can get an calculated value from a function
for exemple
my function is like
function getMyPseudo {
..
..
echo "Rambler"
}
i need to put the printed string into a variable
sommeting like :
MYPSEUDO=getMyPseudo
print $MYPSEUDO
in that case, the out put i... (3 Replies)
Discussion started by: rambler
3 Replies
4. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
5. OS X (Apple)
When opening Terminal window under Mac OS Lion, I have a message saying I've got mail . It seems to be somewhere close to ~/Library/Server/Mail/Data/spool/ but I ignore what command to be typed in order to read it and suppress it later once read. (1 Reply)
Discussion started by: shub22
1 Replies
6. UNIX for Dummies Questions & Answers
Hallo,
I have an general question which happens when installing software by compiling them self. I'm using FreeBSD system 10.0 and the ports. for info, see: http--en.wikipedia.org/wiki/FreeBSD_Ports.
As I installed BSD for some years there was (i.e.) perl-14 installed. Now, when doing some... (1 Reply)
Discussion started by: HL1234
1 Replies
7. UNIX for Beginners Questions & Answers
I make alias in bashrc file and typed it on prompt,
alias tes='echo "$1"xx"$2"xxx"$3"xxxx'
$ tes a b c
xxxxxxxxx a b c
what's happened to the shell here ?, and also,
alias tes='echo "$3"xx"$2"xxx"$1"xxxx
$ tes a b c
xxxxxxxxx a b c
anyone sincerely is to help me.. (2 Replies)
Discussion started by: abdulbadii
2 Replies
8. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT OSF1
praliases
praliases(1) General Commands Manual praliases(1)
NAME
praliases - display system mail aliases
SYNOPSIS
praliases [-f filename] [--] [alias_name...]
OPTIONS
Displays the aliases using the specified dbm file instead of the system aliases file.
OPERANDS
The alias name to find. If no aliases are given, then the entire contents of the dbm file are displayed.
DESCRIPTION
The praliases command displays system aliases used by the sendmail(8) program. If no arguments are given, the praliases command displays
all of the system aliases contained in the file /var/adm/sendmail/aliases.
An alternative file can be specified using the -f option.
Specific aliases can be displayed by specifying one or more alias names.
[Tru64 UNIX] Aliases can be created either with or without the terminating null character ('