Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem w/communication between processes

Status
Not open for further replies.

loosecannon1

Programmer
Feb 19, 2002
55
US
Brief sequence of events:
I have a perl script on server1 that executes a perl script on server2, perl script on server2 does some processing and writes out an xml file. Perl script on server1 then ftp's the xml file to a local dir and parse's the xml file and loads a combobox on a form.

Problem:
One process starts, then before it finishes another process starts, therefore creating errors. For example, before the script on server2 has time to build the xml file, the script on server1 is trying to ftp it.

Question:
How can I possible know when process1 is done so I can tell process2 to start?

PS:
All processes are successful when exe seperatly.
 
This may be too simple minded but..

The process that creates the xml file -- have it create the file with a temporary name, and only rename it its proper name when it's complete.

The process that ftp's the xml file would have to check for the file and sleep for a bit if it's not there. Mike
________________________________________________________________________________

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top