close(FP);
chmod 0755, "test.sh";
+ # create a hardlink
+ link("test.sh", "link-test.sh");
+
+ # play with some symlinks
+ symlink("test.sh", "sym-test.sh");
+ symlink("$REMOTE_FILE/save/test.sh", "sym-abs-test.sh");
+
if ($pid) {
system("ps $pid");
$estat = ($? != 0);
echo $REMOTE_FILE/save > $tmp/file-list
+ssh $REMOTE_ADDR test -x /opt/bacula/bin/bacula-fd
+if [ $? != 0 ]; then
+ print_debug "ERROR: Need to install bacula on $REMOTE_ADDR"
+ echo "ERROR: Need to install bacula on $REMOTE_ADDR"
+ exit 1
+fi
+
$bperl -e remote_stop
$bperl -e remote_init
$bperl -e remote_config