PugSA has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
I am writing a script that determines backups that needs to be done on seperate servers. After certain crteria was met it needs to execute the backup software and go on to the next server. The backup should run simultaniously but I can't seem to find a way to execute the backup.pl and go on with the script.
I've written and example of what the script should do in the following three test scripts
Altough the tests are written in windows Perl the script will run on Linux
You will find in the exec command in example below the script runs the test2.pl but not the test3.pl
Please Help
test.pl
#!c:\perl\bin eval{exec("test2.pl");}; eval{exec("test3.pl");}; print "done\n\n";
test2.pl
#!c:\perl\bin sleep(10); open(TEST,">test.log"); print TEST "hello world\n"; close TEST;
test3.pl
#!c:\perl\bin sleep(10); open(TEST,">test2.log"); print TEST "Hello World\n"; close TEST;
|
|---|