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 recently built a crypto currency miner and I'm using Linux Mint as my OS for the miner. I manually turn on the miner by navigating to ~/Desktop/claymore and running ...
Hello. I am a newcomer to Daniweb and need some advice. I've been using Ubuntu regularily on several PCs and note books installing without problems until now. I have just ...
A while back I built a computer with an Asus motherboard, a SSD, and two milk creates for a cheap case, and I had Xubuntu installed on it. I have ...