3 # Run cfengine on this host
5 require './cfengine-lib.pl';
7 &ui_print_unbuffered_header(undef, $text{'run_title'}, "");
9 # Construct the command
10 $cmd = "$config{'cfengine'} -f $cfengine_conf";
11 $cmd .= " -v" if ($in{'verbose'});
12 $cmd .= " --dry-run" if ($in{'dry'});
13 $cmd .= " -i" if ($in{'noifc'});
14 $cmd .= " -m" if ($in{'nomnt'});
15 $cmd .= " -s" if ($in{'nocmd'});
16 $cmd .= " -t" if ($in{'notidy'});
17 $cmd .= " -X" if ($in{'nolinks'});
19 print "<p><b>",&text('run_exec', "<tt>$cmd</tt>"),"</b><br>\n";
21 $ENV{'CFINPUTS'} = $config{'cfengine_dir'};
22 open(CMD, "$cmd 2>&1 </dev/null |");
24 print &html_escape($_);
27 &additional_log("exec", undef, $cmd);
31 &ui_print_footer("", $text{'index_return'});