Hi:
I am currently working on a program which requires direct its ouput to a file here is an example
./proram arg_1 arg_2
when program ends all output will be arg_2 file
Is that possible I am not a bad programmer, However I am stuck there.
Can anyone give a hint?
Thanks
SW (1 Reply)
Ahhhrrrggg I'm having a brain fart...
I want to take the output of a command and redirect it to a file...
This works....
$ man cp | cat >> copy_help
but this doesn't
keytool -help |cat >> keytool_help
It just produces... these lines...
more keytool_help
] ...
... (11 Replies)
Hi all!!
is possible to assign the output of some command to filename, i.e.
grep_output.txt
Otherwise, I want to open a new file which name is inside another, how can I do it?
Thanks a lot! (7 Replies)
Hey guys ,
i have a variable with the contents ...
NUMBER=4
and a test file with the contents
1248
1213
1214
1278
1200
3045
3444
2130
I want to execute a script that will produce the following output ( based on NUMBER=4) to be ...
create 1248 (1 Reply)
Hi All,
I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it.
my ls -ltr output will be as below.
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl
I want my new file... (6 Replies)
Hi,
I have a data file xyz.dat similar to the one given below,
2345|98|809||x|969|0
2345|98|809||y|0|537
2345|97|809||x|544|0
2345|97|809||y|0|651
9685|98|809||x|321|0
9685|98|809||y|0|357
9685|98|709||x|687|0
9685|98|709||y|0|234
2315|98|809||x|564|0
2315|98|809||y|0|537... (2 Replies)
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
I am working on an outage script and I run a command from the command line which tells me the amount of generator failures in my market. The output of this command only gives me three digits to identify the site by. I have a master list of all sites in a separate file, call it list.txt. If my... (7 Replies)
Discussion started by: jbrass
7 Replies
LEARN ABOUT FREEBSD
rpc.ypxfrd
RPC.YPXFRD(8) BSD System Manager's Manual RPC.YPXFRD(8)NAME
rpc.ypxfrd -- NIS map transfer server
SYNOPSIS
rpc.ypxfrd [-p path]
DESCRIPTION
The rpc.ypxfrd utility is used to speed up the distribution of very large NIS maps from NIS master to NIS slave servers. The normal method
for transferring maps involves several steps:
o The master server calls yppush(8) to inform the slave servers to start a transfer.
o The slave servers invoke ypxfr(8), which reads the entire contents of a map from the master server using the yp_all() function.
o The ypxfr(8) program then creates a new map database file by using the db(3) library hash method to store the data that it receives
from the server.
o When all the data has been retrieved, ypxfr(8) moves the new file into place and sends ypserv(8) on the local machine a
YPPROC_CLEAR to tell it to refresh its database handles.
This process can take several minutes when there are very large maps involved. For example: a passwd database with several tens of thousands
of entries can consume several megabytes of disk space, and it can take the db(3) library package a long time to sort and store all the
records in a hash database. Consider also that there are two sets of map files: master.passwd.by{name,uid} and passwd.by{name,uid}.
The rpc.ypxfrd utility speeds up the transfer process by allowing NIS slave servers to simply copy the master server's map files rather than
building their own from scratch. Simply put, rpc.ypxfrd implements an RPC-based file transfer protocol. Transferring even a multi-megabyte
file in this fashion takes only a few seconds compared to the several minutes it would take even a reasonably fast slave server to build a
new map from scratch.
The rpc.ypxfrd utility uses the same access restriction mechanism as ypserv(8). This means that slave servers will only be permitted to
transfer files if the rules in the securenets database permit it (see ypserv(8) for more information on securenets). Furthermore, only slave
servers using reserved ports will be allowed to transfer the master.passwd maps.
OPTIONS
The following option is available:
-p path
This option can be used to override the default path to the location of the NIS map databases. The compiled-in default path is
/var/yp.
FILES
/var/yp/[domainname]/[maps] The NIS maps for a particular NIS domain.
SEE ALSO yp(8), yppush(8), ypserv(8), ypxfr(8)AUTHORS
Bill Paul <wpaul@ctr.columbia.edu>
BUGS
The FreeBSD ypxfrd protocol is not compatible with that used by SunOS. This is unfortunate but unavoidable: Sun's protocol is not freely
available, and even if it were it would probably not be useful since the SunOS NIS v2 implementation uses the original ndbm package for its
map databases whereas the FreeBSD implementation uses Berkeley DB. These two packages use vastly different file formats. Furthermore, ndbm
is byte-order sensitive and not very smart about it, meaning that am ndbm database created on a big endian system cannot be read on a little
endian system.
BSD June 2, 1996 BSD