SUMMARY: rdist "Is a directory" errors

From: David W. Blaine (blained@gdls.com)
Date: Wed Apr 21 1999 - 07:51:23 CDT


Thanks to Gary Franczyk and others for pointing out that rdist does not work
like rcp. It requires file-to-file or directory-to-directory transfers. It will
not assume (like rcp) that if the source is a file and the destination is a
directory then copy the file into the specified directory. I also had a need to
rdist multiple files at times (but not necessarily a whole directory). Gary
stated, in a later email, that this could only be done one file at a time. I
settled on auto-generating a distfile from within a for loop in my script.

Gary's response and my original question follows....

------------------
David Blaine (blained@gdls.com)
Computer Systems Engineer
CSC for GDLS
Phone: 810-825-7650

------------- Begin Forwarded Message -------------

From: "Franczyk, Gary" <gfranczyk@carbomedics.com>
To: "'David W. Blaine'" <blained@gdls.com>
Subject: RE: rdist "Is a directory" errors
Date: Tue, 20 Apr 1999 09:45:45 -0500
MIME-Version: 1.0

This is what you should have:

FILES = ( /jumpstart/ASD/Config/etc/rc3.d/S99_patches_install_reboot )
(${FILES}) -> (${HOSTS})
        install;
        special "/jumpstart/create_config_file.sh ASD" ;
        notify admin@gdls.com ;

Now, lets assume you want it in a particular directory on the client
machine, but dont want to put S99_patches_isntall_reboot in the same
directory on the rdist server, then you can do it this way:

/path/to/original/S99_patches_install_reboot -> ${HOSTS}
        install /jumpstart/ASD/Config/etc/rc3.d/S99_patches_install_reboot;
        special "/jumpstart/create_config_file.sh ASD" ;
        notify admin@gdls.com ;

        
That will put the file S99_patches_install_reboot into the jumpstart
directory on the client, but it can be whereever you want it to be on the
server.

* gary franczyk
* systems administrator / dba
* 512.435.3286

-----Original Message-----
From: David W. Blaine [mailto:blained@gdls.com]
Sent: Tuesday, April 20, 1999 7:45 AM
To: sun-managers@sunmanagers.ececs.uc.edu
Subject: rdist "Is a directory" errors

Hi Sun-managers:

After getting through the first rdist hurdle, I hit another. First, I was
able
to successfully update my files last week. This week I cannot. Rdist reports

"/jumpstart/ASD/Config/etc/rc3.d Is a directory". My distfile looks like
this:

HOSTS = ( root@host )
FILES = ( S99patches_install_reboot )
(${FILES}) -> (${HOSTS})
install /jumpstart/ASD/Config/etc/rc3.d ;
special "/jumpstart/create_config_file.sh ASD" ;
notify admin@gdls.com ;

Any ideas????

Dave B.

------------- End Forwarded Message -------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:18 CDT