On a side note, are system() calls the best way to call other perl scripts, or would some kind of use or sub better form? (The $blah_program_location above are perl scripts)chdir("$staging_directory") or die "Could not change directory to $staging_directory: $!\n"; system("svn", "update", "base") or die "Could not svn update base: $!\n"; system("svn", "update", "hostgroup") or die "Could not svn update hostgroup: $!\n"; system("svn", "update", "host") or die "Could not svn update host: $!\n"; system("$copier_program_location", "$staging_directory", "$pre_launch_ +directory", "$copier_conf_file") or die "Could not run copier $copier_program_location: $!\n"; system("$permissions_program_location", "-c", "$permissions_conf_file" +) or die "Could not run permissions program $permissions_program_loc +ation: $!\n"; system("rsync", "-avz", "--exclude=.svn", "--delete-after", "$pre_laun +ch_directory", "$live_directory") or die "Could not perform rsync from $pre_launch_directory to $liv +e_directory: $!\n";
Thanks in advance.
-Shane
In reply to Is "die" the best way to be atomic? by BuddhaNature
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |