I have two Macs, a G4 and an iBook. I like to have them setup such that I can use either machine and always have the same environment (tools, documents, preferences, etc). As one machine is a laptop, I have to copy the files to both local disks, so it also works outside my house.
The principle is simple, I guess. But how to implement? I can see two different approaches:
1) every time a machine is booted (or resumed after sleep) it looks if the other one is there. If so, it starts to sync.
The question than becomes: how can I perform an automatic action as soon as a system joins an airport network and sees the other one?
2) every time a user logs in or logs out, if the other machine is there, syncing occurs.
The question than becomes: I know how to start scripts etcetera on log IN, but how do I implement a script to be executed on logout
Finally, what is the best syncing utility for this purpose?
I have the feeling that a full solution should be not too difficult at unix shell script level, but I don't know how to 'catch' events like 'network joined' and 'session login/logout' (which is obviously different from shell login/logout).
I am looking forward to your suggestions! Daan.
The principle is simple, I guess. But how to implement? I can see two different approaches:
1) every time a machine is booted (or resumed after sleep) it looks if the other one is there. If so, it starts to sync.
The question than becomes: how can I perform an automatic action as soon as a system joins an airport network and sees the other one?
2) every time a user logs in or logs out, if the other machine is there, syncing occurs.
The question than becomes: I know how to start scripts etcetera on log IN, but how do I implement a script to be executed on logout
Finally, what is the best syncing utility for this purpose?
I have the feeling that a full solution should be not too difficult at unix shell script level, but I don't know how to 'catch' events like 'network joined' and 'session login/logout' (which is obviously different from shell login/logout).
I am looking forward to your suggestions! Daan.