7 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I was practicing writing simple loops as I am a new bash user and I created this script, which turned out to be an endless loop where the echo output does not stop and I do not see where my mistake is.
#!/bin/bash
echo 'enter a number from 1 to 100'
read number
while
do
... (2 Replies)
Discussion started by: goldenlinx
2 Replies
2. UNIX for Dummies Questions & Answers
I think the libc.so is shared between processes, because it is a shared library and OS is engaged for saving memory.
But, below, the maps of bash, shows r-xp and r--p rw-p attributes to libc.so which mean private memory space.
Can anybody explain this for me?
:)cat /proc/$$/maps... (4 Replies)
Discussion started by: vistastar
4 Replies
3. Shell Programming and Scripting
Hi,
I am running a shell script from a central server to multiple remote servers using the following code:
application_check()
{
# Linux/UNIX box with ssh key based login
SERVERS=`cat /tmp/server-details`
# SSH User name
USR="user"
# create new file
> /tmp/abc.log
# connect... (2 Replies)
Discussion started by: mystition
2 Replies
4. UNIX for Dummies Questions & Answers
I had created a root account when I installed the Centos 5 into my system.
But now the problem I'm facing is that I accidently deleted the root user account in my system.
Is there a way to recreate the root account in the system now, without reinstalling the OS?
Pls help. (1 Reply)
Discussion started by: anaigini45
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is there a way to protect users from deleteing their .profile ?
For the majority of our users I created a captive login by a .profile that starts a menu-script. In this menu a user can only start our applications and logoff. This prevents users from getting to the unix-prompt.
... (7 Replies)
Discussion started by: picard
7 Replies
6. Shell Programming and Scripting
Hi,
I have a strange problem. I accidentally created a file named
${1}_$(date+%Y%m%d)
and when i am trying to remove it I am getting this error
.
Can any one suggest me how i can remove this accidental file. (4 Replies)
Discussion started by: dsravan
4 Replies
7. UNIX for Advanced & Expert Users
Hello..
I stink at NIS! :)
Im having a problem with NIS on solaris 2.X. / SPARC
I have some maps that are exported to all clients in the domain. Now I setup a new server and add it as a nis client to the domain. On the NIS server there is a auto_direct map that mounts /usr/local . This is... (4 Replies)
Discussion started by: s93366
4 Replies
YPPUSH(8) Reference Manual YPPUSH(8)
NAME
yppush - force propagation of changed NIS databases
SYNOPSIS
/usr/sbin/yppush [ -d domain ] [ -t timeout ] [ --parallel # | --port port ] [ -h host ] [ -v ] mapname ...
DESCRIPTION
yppush copies updated NIS databases (or maps) from the master NIS server to the slave servers within a NIS domain. It is normally run only
on the NIS master by /var/yp/Makefile after the master databases are changed. /var/yp/Makefile does not invoke yppush by default, the
NOPUSH=true line must be commented out.
yppush first constructs a list of NIS slave servers by reading the NIS map ypservers within the domain. A destination host (or a list of
hosts with multiple -h commands) can also be specified on the command line. A "transfer map" request is sent to the NIS serger at each
slave, along with the information needed by the transfer agent ypxfr(8) to callback to yppush, which may be printed the result to stderr.
Messages are also printed when a transfer is not possible; for instance when the request message is undeliverable.
OPTIONS
-d domain
Specify a particular domain. The NIS domain of the local host system is used by default. If the local host's domain name is not set,
the domain name must be specified with this flag.
-t timeout
The timeout flag is used to specify a timeout value in seconds. This timeout controls how long yppush will wait for a response from
a slave server before sending a map transfer request to the next slave server in the list. By default, yppush will wait 90 seconds.
For big maps, this is not long enough.
--parallel #, -p #
yppush normally performs transfers serially, meaning that it will send a map transfer request to one slave server and then wait for
it to respond before sending the next map transfer request to the next slave server. In environments with many slaves, it is more
efficient to initiate several map transfers at once so that the transfers can take place in parallel. It is not possible to run in
parallel and assign a fixed port with the --port flag
--port port
specify a port for yppush to listen on. By default, yppush will ask portmap(8) to assign it a random port number. It is not
possible to assign a port with this option and run in parallel with the --parallel or -p flag
-h host
The host flag can be used to transfer a map to a user-specified machine or group of machines instead of the list of servers con-
tained in the ypservers map. A list of hosts can be specified by using multiple instances of the -h flag.
-v Verbose mode: causes yppush to print debugging messages as it runs. Note specifying this flag twice makes yppush even more verbose.
SEE ALSO
domainname(1), ypserv(8), ypxfr(8)
BUGS
The mechanism for transferring NIS maps in NIS v1 is different that that in NIS version 2. This version of yppush has support for transfer-
ring maps to NIS v2 systems only.
AUTHOR
Thorsten Kukuk <kukuk@suse.de>
YP Server August 2002 YPPUSH(8)