#!/usr/bin/php "") { /* lets sync! */ $synchronizetoip = $carp['synchronizetoip']; $current_rules_section = backup_config_section("rules"); $fout = fopen("{$g['tmp_path']}/rules_section.txt","w"); fwrite($fout, $current_rules_section); fclose($fout); /* copy configuration to remote host */ mwexec("/usr/bin/scp {$g['tmp_path']}/rules_section.txt root@{$synchronizetoip}:/tmp/"); mwexec("/usr/bin/ssh /usr/local/pkg/carp_sync_server.php"); } ?>