update update.pl
authorPeng Li <seudut@gmail.com>
Sun, 5 Mar 2017 13:21:31 +0000 (21:21 +0800)
committerPeng Li <seudut@gmail.com>
Sun, 5 Mar 2017 13:21:31 +0000 (21:21 +0800)
cgi-bin/update.pl

index ec288f8..d69f529 100755 (executable)
@@ -4,12 +4,15 @@ use strict;
 
 use CGI qw/:standard/;
 
-print `cd .. && make update`;
+my $out = `cd .. && make update 2>&1`;
+my $ret = $?;
 
 print header;
 print start_html("Update");
 print br;
 
 print "Hello world\n";
+print $ret;
+print $out;
 
 print end_html;