Admin
dashboard
file manager
command
php exec
/
/
usr
/
share
/
doc
/
perl-Sys-Syslog
/
eg
path:
go
upload
mkdir
name
type
size
perms
modified
actions
[parent directory]
syslog.pl
file
322 B
0644
2019-09-25 21:04:43
edit
delete
rename
editing: syslog.pl
#!/usr/bin/perl use strict; use warnings; use Sys::Syslog; die "usage: $0 facility/priority message\n" unless @ARGV; my ($facility, $priority) = split "/", shift; my $message = join " ", @ARGV; openlog($0, "ndelay,pid", $facility) or die "fatal: can't open syslog: $!\n"; syslog($priority, "%s", $message); closelog();
save
cancel