| 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/proc/ |
Upload File : |
#!/usr/bin/perl
require './proc-lib.pl';
&ReadParse();
if ($in{'id'}) {
$idfile = "$module_config_directory/$in{'id'}.tail";
open(IDFILE, ">$idfile");
print IDFILE $$,"\n";
close(IDFILE);
$SIG{'HUP'} = \&hup_handler;
}
$| = 1;
print "Content-type: text/plain\n\n";
$trace = &open_process_trace($in{'pid'},
$in{'syscalls'} ? [ split(/\s+/, $in{'syscalls'}) ]
: undef);
while($action = &read_process_trace($trace)) {
local $tm = strftime("%H:%M:%S", localtime($action->{'time'}));
print join("\t", $tm, $action->{'call'},
join(", ", @{$action->{'args'}}),
$action->{'rv'}),"\n";
}
&close_process_trace($trace);
unlink($idfile) if ($idfile);
sub hup_handler
{
&close_process_trace($trace);
unlink($idfile);
exit;
}