#!/usr/bin/perl
# tta_ensdump.cgi
# EnsDump Services with Tarantella ENS
# STTA Rev. 1.3 Copyright (c) 2001-2002 Jesús Pérez Lorenzo  --- license GNU GPL 

 require './stta-lib.pl';
&foreign_require("proc", "proc-lib.pl");
&headerstta($text{'index_ttaensdump'}, "", "ttaensdump",undef,1,1,$text{headpage_rigth} );

 print "<hr><p>\n"; 
 print "<p>\n";
 print "<table width=100% border>\n";
 print "<tr $tb> <td><b>$text{'titidx_ttaensdump'}</b></td> </tr>\n";
 print "<tr $cb> <td><table width=100%>\n";
	print "<hr>\n";
	print "<tr><td>\n";
        if ($config{'tta_ensdump_dir'}) {
              $ahora=`date +%Y_%m_%d_%H%M%S`;
              $namefile=$config{'tta_ensdump_dir'}."/".$ahora;
              $str=$config{'tta_ensdump'}." ".$config{tta_base}." ".$namefile;
        } else {
              $str=$config{'tta_ensdump'};
        }
        if (&run_cmd($str)) {
                  print "</pre><tr><center><b>-- oOo --</b></center></tr>\n";
        } else {
                  print "<b>$text{'index_cmderr'}</b>\n"; 
        }
 print "<tr>\n";
 print "<tr>\n";
 print "<tr>\n";
 print "</table></table><p>\n";
 &footer($config{'back_return'},$text{'index'});
 do "footer.pl";
 exit;



