Author Archives: admin

Concatenate all lines to one line

Here is something I needed to do the other day. I needed to take an input file which had many lines of text, and concatenate to one line. There are lots of ways of doing this, but here is just … Continue reading

Posted in Code, Unix And Shell | Tagged , , | Leave a comment

Compress logs daily

If you have a service generating log files that can’t be automatically rolled over and cleaned up, here is a quick method,  using a cron entry, to gzip and then remove the unneeded logs: 05 04 * * * /usr/bin/find … Continue reading

Posted in Code, Unix And Shell | Tagged , , , , , , , , , , | 3 Comments

Add a date to an output file generated from a cron entry

If you’ve ever struggled to put a date format in a crontab entry, so that the output file for the command has a date/time stamp, then here is a method that works: 00 02 * * * /var/scripts/bin/filesystem_cleaner.sh -a > … Continue reading

Posted in Code, Unix And Shell | Tagged , , , , , | 3 Comments

Agent vs Agentless Deployments Part 1: Agent Based Deployments

Agent based deployments rely on the presence of a running process and associated connection port(s) on the target infrastructure as a means to transport files and/or execute actions or commands. Agents can also be used to discover configurations on target … Continue reading

Posted in Remoting | Tagged , , , , , , , , , , , , , , | Leave a comment