10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Howdy folks,
How do i make the input start with a letter and certain num of numbers and if anything else is entered it should display error
for ex; a123455 is good ( exactly 7 characters)
and
ex: sio234234 is not good
ex: b233 is not good..
ex: jlasjdlfks is not good
... (2 Replies)
Discussion started by: coolkid
2 Replies
2. Solaris
I need to start a service among the last on a freshly booted system. Via the manifest, I've made it dependent on very milestone on the computer yet the service still comes back with an error that a kstat variable in the kernel does not exist.
I run it right the service process right there... (6 Replies)
Discussion started by: JWH
6 Replies
3. UNIX for Dummies Questions & Answers
Dear all,
I'm new in unix systm , I try to write alias script:
alias hr= cd/home/hmi/bin/Log
and this work,
but when i quit from unix and login again, this can't work again.
how to create alias that can work anytime
thank you (19 Replies)
Discussion started by: aish11
19 Replies
4. UNIX for Dummies Questions & Answers
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies
5. UNIX for Dummies Questions & Answers
Okay so I have an alias that looks like this:
ALIAS gscn {
MSG gscn Test1
MSG gscn Test2
MSG gscn Test3
MSG gscn Test4
MSG gscn Test5
}
How do I make it wait 5 seconds between each command before it executes the next one after that in order from top to bottom? I tried the TIMER... (1 Reply)
Discussion started by: guitarscn
1 Replies
6. Shell Programming and Scripting
Hey!
I'm working on a script that will add a user, create some configfiles, and add a crontab for the user.
The crontab looks like the following:
@reboot /home/user/program config.conf &
I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies
7. Shell Programming and Scripting
how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies
8. Shell Programming and Scripting
hi all
How can I make a program start up automatically after the computer restart/startup in fedora?
something like:
... Establish a shell then run some of command code.
Thanks for Help!! (1 Reply)
Discussion started by: munna_dude
1 Replies
9. Shell Programming and Scripting
Dear all,
I'm new in unix systm , I try to write alias script:
alias hr= cd/home/hmi/bin/Log
and this work,
but when i quit from unix and login again, this can't work again.
how to create alias that can work anytime
thank you
Regards
Heru (1 Reply)
Discussion started by: heru_90
1 Replies
10. Shell Programming and Scripting
Hi
Does any have a script that can make a new workspace and name it and then start a named terminal window and then do a command in that window?
E.g.:
Make a new window called top (to see the processes) start an xterm window called top and then do an rlogin to a host and run top to see the... (0 Replies)
Discussion started by: laho
0 Replies
aliasadm(1M) System Administration Commands aliasadm(1M)
NAME
aliasadm - manipulate the NIS+ aliases map
SYNOPSIS
aliasadm -a alias expansion [options comments] optional flags
aliasadm -c alias expansion [ options comments] [ optional flags]
aliasadm -d alias [ optional flags]
aliasadm -e alias [ optional flags]
aliasadm -l alias [ optional flags]
aliasadm -m alias [ optional flags]
aliasadm [-I] [-D domainname] [-f filename] [-M mapname]
DESCRIPTION
aliasadm makes changes to the alias map.
The alias map is an NIS+ table object with four columns:
alias The name of the alias as a null terminated string.
expansion The value of the alias as it would appear in a sendmail /etc/aliases file.
options A list of options applicable to this alias. The only option currently supported is CANON. With this option, if the user
has requested an inverse alias lookup, and there is more than one alias with this expansion, this alias is given prefer-
ence.
comments An arbitrary string containing comments about this alias. The sendmail(1M) command reads this map in addition to the NIS
aliases map and the local /etc/aliases database.
OPTIONS
-a Add an alias.
-c Change an alias.
-d Delete an alias.
-e Edit the alias map.
-I Initialize the NIS+ aliases database.
-l List the alias map.
-m Print or match an alias.
-D domainname Edit the map in domain domainname instead of the current domain.
-f filename When editing or listing the database, use filename instead of invoking the editor.
-M mapname Edit mapname instead of mail_aliases.
FILES
/etc/aliases mail aliases for the local host in ASCII format
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
sendmail(1M), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 12 Dec 2001 aliasadm(1M)