07-17-2012
nslookup will show an alias if there is one. But you have to know a valid server name to start with.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My situation is that we have production unix scripts that ftp files over to a windows server. I'm not sure if its a 2000 or 2003 server as I dont work on server, more on the unix side. It turns out that they are changing servers on the network. So they are migrating our data over from say Server 1... (1 Reply)
Discussion started by: NycUnxer
1 Replies
2. Shell Programming and Scripting
i have a cygwin unix and i would like to use alias to save a cd command.. however i lose this alias when i close out cygwin and log back in.. is there any way to save this command so that i can use it every time i log in? i am using cygwin on windows xp. thanks. (1 Reply)
Discussion started by: npatwardhan
1 Replies
3. AIX
Hi,
I want to set Unix prompt in C-Shell which required the break new line using alias.
Ex.
hostname : username :
%>
Now, it will be setup in .login file with alias
alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"'
I'm unable to parse echo command or break which I can get %>... (1 Reply)
Discussion started by: buzzusa
1 Replies
4. Shell Programming and Scripting
Hi,
I want to set Unix prompt in C-Shell which required the break new line using alias.
Ex.
hostname : username :
%>
Now, it will be setup in .login file with alias
alias cd 'cd \!* | set prompt="`hostname` : $USER : %>"'
I'm unable to parse echo command or break which I can get %>... (3 Replies)
Discussion started by: buzzusa
3 Replies
5. Web Development
Apache Experts!
We have 'n' servers behind a firewall. One of these, 'Machine A', is the DMZ, and is world facing. It serves up any number of Apache Virtual Hosts already, no problem!
Now, how do we 'attach' another server - currently visible only to the internal subnet - such that its... (3 Replies)
Discussion started by: Dr Lou
3 Replies
6. OS X (Apple)
I have a file named 'aliases' which contains a list of aliases like:
alias loc='locate'
alias h='history'
alias .='pwd'
alias ..='cd ..'
alias cd..='cd .. ; pwd'
..............................
Where should I put this file (alias) so when Terminal launches .bash and thus a shell at... (1 Reply)
Discussion started by: shub22
1 Replies
7. Shell Programming and Scripting
Hi All,
Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older.
Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies
8. Solaris
Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Discussion started by: rbalaj16
3 Replies
9. Windows & DOS: Issues & Discussions
Hi,
I am new to unix and plink in general. I want to run plink.exe on windows to execute alias command on unix. Is it possible? I can run simple unix commands from plink for ex:
plink.exe -pw mypass myusername@hostip touch filename
It successfully creates the "filename" file on the hostip host. ... (1 Reply)
Discussion started by: Ivanhou8219
1 Replies
10. UNIX for Advanced & Expert Users
All,
We have a hosted CentOS 6 VPS server, using CPanel to install/config the domains/subdomains and installed osTicket in:
my.domain.com/tkng/
We are trying to define the following Apache alias:
my.domain.com/tickets
which has to point to:
my.domain.com/tkng/upload/
CPanel... (0 Replies)
Discussion started by: TBotNik
0 Replies
EXPN(1) General Commands Manual EXPN(1)
NAME
expn - recursively expand mail aliases
SYNOPSIS
expn [-a] [-v] [-w] [-d] [-1] user[@hostname] [user[@hostname]]...
DESCRIPTION
expn will use the SMTP expn and vrfy commands to expand mail aliases. It will first look up the addresses you provide on the command line.
If those expand into addresses on other systems, it will connect to the other systems and expand again. It will keep doing this until no
further expansion is possible.
OPTIONS
The default output of expn can contain many lines which are not valid email addresses. With the -aa flag, only expansions that result in
legal addresses are used. Since many mailing lists have an illegal address or two, the single -a, address, flag specifies that a few ille-
gal addresses can be mixed into the results. More -a flags vary the ratio. Read the source to track down the formula. With the -a
option, you should be able to construct a new mailing list out of an existing one.
If you wish to limit the number of levels deep that expn will recurse as it traces addresses, use the -1 option. For each -1 another level
will be traversed. So, -111 will traverse no more than three levels deep.
The normal mode of operation for expn is to do all of its work silently. The following options make it more verbose. It is not necessary
to make it verbose to see what it is doing because as it works, it changes its argv[0] variable to reflect its current activity. To see
how it is expanding things, the -v, verbose, flag will cause expn to show each address before and after translation as it works. The -w,
watch, flag will cause expn to show you its conversations with the mail daemons. Finally, the -d, debug, flag will expose many of the
inner workings so that it is possible to eliminate bugs.
ENVIRONMENT
No environment variables are used.
FILES
/tmp/expn$$ temporary file used as input to nslookup.
SEE ALSO
aliases(5), sendmail(8), nslookup(8), RFC 823, and RFC 1123.
BUGS
Not all mail daemons will implement expn or vrfy. It is not possible to verify addresses that are served by such daemons.
When attempting to connect to a system to verify an address, expn only tries one IP address. Most mail daemons will try harder.
It is assumed that you are running domain names and that the nslookup(8) program is available. If not, expn will not be able to verify
many addresses. It will also pause for a long time unless you change the code where it says $have_nslookup = 1 to read $have_nslookup = 0.
Lastly, expn does not handle every valid address. If you have an example, please submit a bug report.
CREDITS
In 1986 or so, Jon Broome wrote a program of the same name that did about the same thing. It has since suffered bit rot and Jon Broome has
dropped off the face of the earth! (Jon, if you are out there, drop me a line)
AVAILABILITY
The latest version of expn is available through anonymous ftp at ftp://ftp.idiom.com/pub/muir-programs/expn.
AUTHOR
David Muir Sharnoff <muir@idiom.com>
7th Edition March 11, 1993 EXPN(1)