05-18-2008
ls -t will give you the last mod time of any file. just write a script that will compare each file in dir1 and dir2 and sync on the latest mod of the files. i don't understand why the file structure would be different if you are trying to sync the same stuff across two fs or platforms... do you mean the full paths are different? shouldn't matter.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
Is there an easy way to synchronize the time of a Linux server with another server (Linux or Windows). I need to do this on a daily basis so that my clock does is insync.
Is synchronizing with an eternal server hazardous to the security of the box?
Thanks in advance
KS (2 Replies)
Discussion started by: skotapal
2 Replies
2. UNIX for Dummies Questions & Answers
All
What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
Discussion started by: skotapal
1 Replies
3. UNIX for Advanced & Expert Users
i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
Discussion started by: inquirer
2 Replies
4. UNIX for Advanced & Expert Users
I have 2 hosts (server and client), on the client side I mount remote directory (through NFS). How can I synchronize content of 2 directories (one on the client, and one on the server, mounted to the client)? i.e. when client is connected to the server synchronization process is automatically... (5 Replies)
Discussion started by: Hitori
5 Replies
5. AIX
I want to synchronize my AIX 5.3 server with the server NTP windows using the ntpdate commande but there was a difference about 9 hours after synchro. here is my script and the result
# date
Tue Apr 10 18:58:06 CDT 2007
# ntpdate 192.168.10.212
10 Apr 09:58:19 ntpdate: step time server... (5 Replies)
Discussion started by: tovohery
5 Replies
6. Shell Programming and Scripting
I want to do a synchronization from local to ftp.
local:
name modified time
a.txt 10:04
c.txt 10:05
ftp:
b.txt 10:00
c.txt 10:05
final result would be
a.txt copy to ftp
b.txt deleted
c.txt nothing to do
Is there a good way to do so?
Thanks. (3 Replies)
Discussion started by: uativan
3 Replies
7. Shell Programming and Scripting
Hi Friends,
My goal is to copy 1000 of files of same filesize simultaneously to a directory. i.e i do multiple copies into a same directory. What i feel here is, at some 1000th iteration, few transfers ends in advance before some transfers start. I need to get synchronized file transfers so that... (1 Reply)
Discussion started by: amio
1 Replies
8. Shell Programming and Scripting
Hi guys and girls :)
I have some problem with folder synchronization.
I have a hudson job that make special build from svn data (check outing full project every time), after build folder is synchronized with second folder lets call them build and destination :)
Currently I'm copying build to... (1 Reply)
Discussion started by: cvi
1 Replies
9. Solaris
Hi everyone!
I wonder about the rsync. The purpose I just want:
synchronization from server 1 to server 2 by rsync, example:
Node 1: /app/logs/*
Node 2: /app/logs/*
in Node 1 when I used rsync -aru /app/logs/ node2:/app/logs/, then everything will be copied and update to node 2. But,... (1 Reply)
Discussion started by: trantuananh24hg
1 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
it is assumed that the five processes are available according to the graph (cycle is formed of five process). ... (1 Reply)
Discussion started by: mariam40
1 Replies
LEARN ABOUT MOJAVE
osspinlockunlock
SPINLOCK_DEPRECATED(3) BSD Library Functions Manual SPINLOCK_DEPRECATED(3)
NAME
OSSpinLockTry, OSSpinLockLock, OSSpinLockUnlock -- deprecated atomic spin lock synchronization primitives
SYNOPSIS
#include <libkern/OSAtomic.h>
bool
OSSpinLockTry(OSSpinLock *lock);
void
OSSpinLockLock(OSSpinLock *lock);
void
OSSpinLockUnlock(OSSpinLock *lock);
DESCRIPTION
These are deprecated interfaces for userspace spinlocks, provided for compatibility with legacy code. These interfaces should no longer be
used, particularily in situations where threads of differing priorities may contend on the same spinlock.
The interfaces in <os/lock.h> should be used instead in cases where a very low-level lock primitive is required. In general however, using
higher level synchronization primitives such as those provided by the pthread or dispatch subsystems are preferred.
The OSSpinLock operations use memory barriers to synchronize access to shared memory protected by the lock. Preemption is possible while the
lock is held.
OSSpinLock is an integer type. The convention is that unlocked is zero, and locked is nonzero. Locks must be naturally aligned and cannot
be in cache-inhibited memory.
OSSpinLockLock() will spin if the lock is already held, but employs various strategies to back off. Because it can spin, it will generally be
less cpu and power efficient than other synchronization primitives.
OSSpinLockTry() immediately returns false if the lock was held, true if it took the lock. It does not spin.
OSSpinLockUnlock() unconditionally unlocks the lock by zeroing it.
RETURN VALUES
OSSpinLockTry() returns true if it took the lock, false if the lock was already held.
SEE ALSO
atomic(3), atomic_deprecated(3)
Darwin May 26, 2004 Darwin