[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ProgSoc] bash/job-control script question



 Hi,

 I'm writing a very simple script .. copying two chunks of data
 from two different boxes, and then once I've got them on my
 machine, I want to copy one instance back to one of the machines
 I've just copied from.  (I'm sync'ing data between two boxes,
 alternating daily, and forcing read-only access on the 'old'
 copy on the off-days, whilst keeping copies from both servers
 locally for two days, just-in-case...)

 My problem is timing .. these are slow links, and the servers are in
 Ho Chi Minh and Hanoi - so I need to avoid *their* business hours, too.

 So - there are three tasks.  1) copy from hanoi, 2) copy from ho
 chi minh, and 3) copy from here to one of them.  I can do 1 & 2
 concurrently, and want to do (3) as soon as *both* 1 & 2 are done..

 How do I tell bash to do that?  I suspect ()'s are involved, but
 I've not had much success in the past with this stuff.

 While I'm at it .. if I kick off a task, and want to log off my
 terminal, is there a way to retrospectivly 'nohup' it?  I'm
 hip to the ctrl-z/bg thing.. and wonder if there's a nohup equiv..?

 Taa,
 Jedd.
--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>