Operating System - HP-UX
1833664 Members
3749 Online
110062 Solutions
New Discussion

Re: Command rdist: distfile: No such file or directory

 
Manuales
Super Advisor

Command rdist: distfile: No such file or directory

Hi,could you tell me why do i need "distfile" file ?
I've created .rhosts file containing "+" in both machines (local and remote) and is ok when i execute next:

$ rdist -c -v $(pwd)/test
143.45.67.54
updating host 143.45.67.54
need to install: /home/Manuales/test

but, when i execute nex it appears the message "distfile":

$ rdist -v $(pwd)/test 143.45.67.54
distfile: No such file or directory

what do i do more?
why does message appears?

Thanks, Manuales.
3 REPLIES 3
Raj D.
Honored Contributor

Re: Command rdist: distfile: No such file or directory

Hi Manuales ,


$ rdist -v $(pwd)/test 143.45.67.54
In this command check $pwd is set correctly to get the correct path.

What happens if u try with absolute path.

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Sameer_Nirmal
Honored Contributor

Re: Command rdist: distfile: No such file or directory

Hi,

The message "distfile: No such file or directory " is obvious as the output of
rdist -v $(pwd)/test 143.45.67.54 which you are trying.
In your first command you used " -c " option which forces the rdist to use remaining arguments as distfile specified format options.
In the second command , rdist is searching for the distfile since -f option is not used and this is a default mode of operation. It will search for a file named as "distfile" in the current directory of the local host.

So if you want to give all those arguments at the command line itself , you should use "-c" option exclusively.
Second option would be put all those arguments in a file named as "distfile" or any other file name as per the specified format in the local host working directory. Then use "-f" option with rdist to specify it. Refer the rdist (1) man page as well.



Geoff Wild
Honored Contributor

Re: Command rdist: distfile: No such file or directory

This is how I setup rdist:

rdist was setup as follows:

created /app/admin/drp

created script to update files tn DR server called update-binaries.sh

created file to store what to update called distfile

/app/admin/drp # cat update-binaries.sh
#! /bin/sh

# Keep the DRP copy of the vgpadm up-to-date.
# Currently the files are in:
#
# /home/vgpadm
#
# See the rdist(1M) distfile for a list of exclusions.

DRPDIR=/app/admin/drp
DRPHOST=svr032

mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
( su - vgpadm -c "rdist -f $DRPDIR/distfile vgpadm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "VGPADM DRP rdist output" gwild@mydomain.com
fi

/app/admin/drp # cat distfile
VGPDR = ( svr032 )

#
# File systems to be copied over to the DR host.
VGPADM = /home/vgpadm

vgpadm: ( ${VGPADM} ) -> ( ${VGPDR} )
install -R -w ;
except ${VGPADM}/logfiles;

Add to cron:

# Copy vgpadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.