D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
perl-Sys-Syslog
/
eg
/
Filename :
syslog.pl
back
Copy
#!/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();
Name
Size
Last Modified
Owner
Permissions
Actions
syslog.pl
0.314
KB
May 05 2016 11:11:19
root
0644
2017 © D7net | D704T team