&print_tempfile(YESFILE, "Yes\n");
}
&close_tempfile(YESFILE);
-&open_execute_command(CMD, "$cmd 2>&1 <$yesfile", 1);
+&open_execute_command(CMD, "$cmd <$yesfile", 2);
while(<CMD>) {
if (/setting\s+up\s+(\S+)/i && !/as\s+MDA/i) {
push(@rv, $1);
$failed = 0;
$retry = 0;
print "<pre>";
- &open_execute_command(PKGGET, "$pkg_get -i -f ".quotemeta($update), 1);
+ &open_execute_command(PKGGET, "$pkg_get -i -f ".quotemeta($update), 2);
while(<PKGGET>) {
if (!/^\s*\d+\%\s+\[/) {
# Output everything except download lines
print "<pre>";
&additional_log('exec', undef, "up2date \"$update\"");
local $qm = quotemeta($update);
-&open_execute_command(CMD, "up2date $qm 2>&1", 1);
+&open_execute_command(CMD, "up2date $qm", 2);
local $got_error = 0;
while(<CMD>) {
while(s/^[^\015]+\015([^\012])/$1/) { }
print "<pre>";
&additional_log('exec', undef, "$cmd $update");
local $qm = join(" ", map { quotemeta($_) } split(/\s+/, $update));
-&open_execute_command(CMD, "$cmd $qm 2>&1 </dev/null", 1);
+&open_execute_command(CMD, "$cmd $qm </dev/null", 2);
while(<CMD>) {
s/\r|\n//g;
if (/installing\s+(\S+)\s+from/) {
print "<pre>";
&additional_log('exec', undef, "yum $enable -y install $update");
local $qm = join(" ", map { quotemeta($_) } split(/\s+/, $update));
-&open_execute_command(CMD, "yum $enable -y install $qm 2>&1 </dev/null", 1);
+&open_execute_command(CMD, "yum $enable -y install $qm </dev/null", 2);
while(<CMD>) {
s/\r|\n//g;
if (/^\[(update|install|deps):\s+(\S+)\s+/) {