From: thomasriise on
Hi guys,

--------
Posted this in unix.shell - but that group is filled with spam.
--------

I want three instances of the same script to loop through the same
dir. (the run on 3 servers that holds the same mount)

How do I do this the easy way? I mean, so I wont treat the same file
twice.

Is it just mv?

Thanks!
From: tony_curtis32 on
thomasriise <thomasriise(a)gmail.com> writes:

> Hi guys,
>
> --------
> Posted this in unix.shell - but that group is filled with spam.
> --------
>
> I want three instances of the same script to loop through the same
> dir. (the run on 3 servers that holds the same mount)
>
> How do I do this the easy way? I mean, so I wont treat the same file
> twice.
>
> Is it just mv?

Depends on what the scripts are supposed to be doing...can
you provide at least an outline of what the scripts should
do, maybe what the filenames look like, before and after
states of the directories?

hth
t
From: bb on
On 2009-12-02 11:02, thomasriise wrote:
> Hi guys,
>
> --------
> Posted this in unix.shell - but that group is filled with spam.
> --------
>
> I want three instances of the same script to loop through the same
> dir. (the run on 3 servers that holds the same mount)
>
> How do I do this the easy way? I mean, so I wont treat the same file
> twice.
>
> Is it just mv?
>
> Thanks!

I'm not sure what you are doing, but only the first one really access the remote
files with read, the other two will read from cache and just trigger a delayed
write on the remote host for atime updates if enabled.

/bb