Skip to content

PowerMTA Server Not starting

I have recently installed PowerMTA server on CentOS 6, every prerequisite was installed according to Document and License was entered in correctly configuration file was also correctly setup in /etc/pmta/config but unable to start pmta service and getting this error in logs, Answer You have an invalid license…

Shell : choosing string between two strings using sed

I have a log file in format like this : I want to return all the strings which are between pseudo and pseudoConcat, my desired output is : How can I do this using sed or awk? I’m trying for a few days in vain. Thanks. Answer With GNU grep: Output without trailing spaces: thierry33 i love you With bash:

Link a C++ library: Restbed

I just downloaded the restbed library: https://github.com/Corvusoft/restbed. I have trouble using it.. In fact, I don’t know where to put this library.. (I have Linux Mint 17.2).. I’m pretty sure that I’m doing something using because when I use #include <restbed>, the make command say…

Grabbing data between two commas

I am in the process of writing a simple script to grab battery information from acpi so I can format and output it. Currently, I am using cut to grab this information, but as the battery state changes, cut does not grab the correct data and instead will grab a portion of a string instead of the battery percen…