Hello list,
I have got a test automation script that I use to test code running in a
Solaris envrionment. The script is written in Perl 5.6.1 and makes system
calls via system and open( FD, "the command |"). The script currently runs
in serial mode where one function has to wait on the previous function.
This is very slow since the system commands are rsh commands that tell other
boxes in the network to do things. Since these functions are essentially
running on "other processors" I would like to spawn/fork/thread two of them
and wait for both there completion. The current sudo code is as follows:
#!/usr/local/bin/perl
bounce_destination_nodes # rsh that tells other nodes they need to bounce.
# only this one is running
# wait
build_test_data # rsh that tells test box it needs to build data.
# only this one is running
# wait
What I would like is:
#!/usr/local/bin/perl
bounce_destination_nodes # rsh that tells other nodes they need to bounce.
build_test_data # rsh that tells test box it needs to build data.
# both are running at this point.
# wait for both to complete, thus cutting down on time...
What I am looking for is code snippets, an example someone has seen or for
someone to give me a clue where to start. Any ideas would be appreciated.
Chip Cuntz
Worldcom Test Lead
NIC System Test
DCS System/Integration Test
v622.1305/719.535.1305