Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 232d7868

Von Bernd Bleßmann vor mehr als 9 Jahren hinzugefügt

  • ID 232d78687663884df38c106f9089f637509722fd
  • Vorgänger d0b60417
  • Nachfolger d13c7050

Rückgabewert von system-Aufrufen prüfen und ggf. Fehler ausgeben.

Unterschiede anzeigen:

SL/Template/HTML.pm
$psfile .= ".ps";
}
system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile");
if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile") == -1) {
die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
}
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;
......
$pdffile .= ".pdf";
}
system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile");
if (system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile") == -1) {
die "system call to $::lx_office_conf{applications}->{html2ps} failed: $!";
}
if ($?) {
$self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
return 0;

Auch abrufbar als: Unified diff