Log the output of BASH scripts to a Syslog-like format
Not sure what you are after exactly. Do you want the script results sent to syslog? Do you want the script to send messages to syslog?
There are a few ways of doing this that I can think of off the top of my head.
You can just send a message to the syslog port of your server using net-cat like this:
nc -w0 -u <syslog ip> 514 <<< "SOURCELABEL SYSLOGTAGLABEL This is a message for syslog"
Or you could send the output directly to the logger itself:
echo "This is a test" | logger -i
Is this what you want?
i am a student of diploma in electronics and telecomm
can anyone suggest me projects related to the below domains:-
electrical and electronics
Here at the cottage I have a 3 gig/month cap. If I go over I pay extra. That gives me about 100 meg a day to play with. In preparation ...
So I turn on the PC it all lights up fans are going pumps are going keyboard and mouse have power but the lights on the keyboard arnt working have ...