| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/software/ |
Upload File : |
#!/usr/bin/perl
# Update ports snapshot
require './software-lib.pl';
&foreign_require("proc");
&ui_print_unbuffered_header(undef, $text{'ports_upgrade'}, "");
foreach my $cmd ("portsnap fetch",
"portsnap update || portsnap extract") {
print &text('ports_running', "<tt>$cmd</tt>"),"<br>\n";
print "<pre>";
($fh, $pid) = &proc::pty_process_exec($cmd);
while(<$fh>) {
print &html_escape($_);
}
close($fh);
print "</pre>";
last if ($?);
}
&ui_print_footer("", $text{'index_return'});