10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Within a session we have created some aliases. How to unset all the aliases in the session or specific alias? (1 Reply)
Discussion started by: pandeesh
1 Replies
2. HP-UX
Hi folks,
How can I make an alias in HP-UX? I've tried to add something just like this
bye='exit' (as example), the system accepted but when I write bye in the terminal its return with invalid command. When I make such alias in RedHat or Fedora the system accept it right there, what is the... (7 Replies)
Discussion started by: leo_ultra_leo
7 Replies
3. Shell Programming and Scripting
Hi all,
I have and alias set in .profile like
alias ll='ls -la'
I am writing a shell script in which i am using "ll" but it gives command not found . Can anyone please tell me how source aliases in the script we write do i need to define it again in every script i write is there any oher... (1 Reply)
Discussion started by: firestar
1 Replies
4. Solaris
I'm at a bit of a loss here, any help is appreciated...
I have Solaris 10, and in submit.cf, sendmail.cf I have the mail relay setup to our companys relay server which works fine when I type a full email address on the command like (i.e. #echo hello | mail me@work.com).
However, I am trying... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix. I want to know how to setup aliases in Unix. Mean if i write a particular word say scripts then it should take me to scripts directory.
Kindly help. (2 Replies)
Discussion started by: amritansur
2 Replies
6. UNIX for Dummies Questions & Answers
How come if I set an alias as such:
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
it will work as intended, ie the command 'dt' does prompt the date and time, but not when invoked through a script as such:
#!/bin/sh
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
The OS is FreeBSD 7.1.
Thanks in advance (4 Replies)
Discussion started by: figaro
4 Replies
7. UNIX for Dummies Questions & Answers
Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI?
The answer needs to be very simplly explained at this stage, as I am new to the command prompt...expecialy in linux.
thanks heaps guys
Pipa:)
I... (2 Replies)
Discussion started by: Pipa
2 Replies
8. UNIX for Dummies Questions & Answers
Is there a way to view what aliases are running on a given session? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
9. Programming
Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Discussion started by: mluey61
1 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to make a script that will automatically read incoming mail, parse the recipient, then send a file off to the recipient.
(Name of file = mail.pl)
#!/usr/bin/perl
$mailDir = "/var/spool/mail/"
$user = print `cat <STDIN> | grep To: | cut -b5-`;
print `elm -s Awaiting Mail $user <... (1 Reply)
Discussion started by: ComTec
1 Replies
newaliases(1M) System Administration Commands newaliases(1M)
NAME
newaliases - rebuild the data base for the mail aliases file
SYNOPSIS
newaliases
DESCRIPTION
newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases.
newaliases accepts all the flags that sendmail(1M) accepts. However, most of these flags have no effect, except for the -C option and three
of the Processing Options that can be set from a configuration file with the -o option:
-C /path/to/alt/config/file
Use alternate configuration file.
-oAfile
Specify possible alias files.
-oLn
Set the default log level to n. Defaults to 9.
-on
Validate the RHS of aliases when rebuilding the aliases(4) database.
newaliases runs in verbose mode (-v option) automatically.
EXAMPLES
Example 1 Running the newaliases Command
The following command runs newaliases on an alias file different from the /etc/mail/aliases default in sendmail(1M):
example% newaliases -oA/path/to/alternate/alias/file
EXIT STATUS
newaliases returns an exit status describing what it did. The codes are defined in /usr/include/sysexits.h.
EX_OK Successful completion on all addresses.
EX_NOUSER User name not recognized.
EX_UNAVAILABLE Catchall. Necessary resources were not available.
EX_SYNTAX Syntax error in address.
EX_SOFTWARE Internal software error, including bad arguments.
EX_OSERR Temporary operating system error, such as "cannot fork".
EX_NOHOST Host name not recognized.
EX_TEMPFAIL Message could not be sent immediately, but was queued.
FILES
/etc/aliases Symbolic link to /etc/mail/aliases
/etc/mail/aliases.pag
/etc/mail/aliases.dir ndbm files maintained by newaliases
/etc/mail/aliases.db Berkeley DataBase file maintained by newaliases
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsndmu |
+-----------------------------+-----------------------------+
SEE ALSO
sendmail(1M), aliases(4), attributes(5)
SunOS 5.11 14 Sep 2001 newaliases(1M)