10-09-2003
A long time ago an ftp process was done on SUN servers at my workplace where the map database file is sent to other servers and then a check file was sent. The check file contained the output of ls -s of the map database file. It was checked against the ftp'd file. (The second file with the size also allowed us to know when the first file was completly sent and not still being sent).
set knownsize = `cat $ftphome/ftpOVready|awk '{print $1}'`
set thissize = `ls -s $ftphome/openview-$today.tar |awk '{print $1}'`
if ("$thissize" != "$knownsize") goto files-missing
This was part of the code (in csh).
I don't see why you couldn't do the same unless it's going to a non-UNIX system.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm really new at this and wondering how I would go about adding code to my script to verify that all records loaded successfully? (I am loading a file into a table) i'm using the Korn shell.
I'm also having trouble verifying parts in the header as i do not really understand the header and... (3 Replies)
Discussion started by: sheranjem
3 Replies
2. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
3. Programming
hello every body,
I have to verifiy if the param_key is selectionned twice or more and to print only one occurence i'm using htable what's the good implementation to add to the code to verify this.
code :
{
char *tmpStr = NULL;
ght_iterator_t iterator_param;
void... (0 Replies)
Discussion started by: kamel.seg
0 Replies
4. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
5. UNIX for Dummies Questions & Answers
Do we have any defined error code for FTP status (2 Replies)
Discussion started by: krissathish
2 Replies
6. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
7. Shell Programming and Scripting
Hi eveyone
I am planning to use crontab to delete all files in my donwloads directory that are older than one hour
I will be using crontab to run this script
find /home/kee/downloads/* -daystart -mmin +59 -type f -name -exec rm -r {}\;
could you please let me know if the above... (1 Reply)
Discussion started by: k33k00
1 Replies
8. Shell Programming and Scripting
Hello,
I have a file, in which line 40 is commented. It is basically a cron job,
#05,35,50 * * * * /usr/local/scripts/my.sh
how i can i verify the line 40 is commented, if not then give me message not commented, otherwise provide us message it is commented. (5 Replies)
Discussion started by: learnbash
5 Replies
9. Shell Programming and Scripting
I am trying to generate code
1. move entire list of file names with specific pattern(standard patterned name for example file name is <process>_<country>_<yymmdd>) in a directory to a variable
2. Use variable in netezza code to check file name exist in a table or not?
for example: Employee... (1 Reply)
Discussion started by: JayDoshi
1 Replies
10. Programming
Using ECDSA, how do you verify integrity of Data (D), Given the value for the following:
Random number (r)
Signature (s)
ECpublic Key (K)
Thanks. (0 Replies)
Discussion started by: dragonpoint
0 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