Update - Checking for directory on remote machine.

2007-12-25 11:13:00

Hi all,

I had a problem a while ago with checking for a directory on

a remote machine. I wanted to do this for a script I was

writting to install software on multiple remote machines.

Since my last summary I have gotten a couple more suggestions.

Most of them where all suggesting the use of rsh with an

if statement.

However, Mariel Feder unix.support@meralco.com.ph,

suggested using rdist.

>Regarding the script you are writing, I would suggest you to

>take a look at the rdist command, which is already tested

>and does exactly what you are asking for.

>You can customize it specifying what files/directories to copy,

>to where in each host, to which host, actions to take in any case,

>like notifying or something like that.

>The easiest way to use it is:

>rdist -f /mydir/distfile

>distfile is the specification file. A very simple one could be:

>(/mydir/dirtocopy) -> (host1 host2)

>install /mydir2/dirtarget;

>notify john@host3;

>There are many other options stated in the man rdist page.

Regards,

  Vassilo Walluschnig

===============================================================

=========== ==== === ======= Vassilo Walluschnig ==

========= === ==== === === ====== Planning Information ==

======== ========= === ============ Urban Developement ==

======= == === ===== ========== Greater Johannesburg ==

====== ==== === ======== ========= Metropolitan Council ==

====== === === === === ========== 27 11 407-6125 ==

======= == === ============ vassilo@mj.org.za ==

===============================================================

Comments

Got something to say?

You must be logged in to post a comment.